aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-02-24 22:36:52 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-02-24 22:55:08 +0100
commit9d35b49f1686818a00e6ed0ef42f4718200fb15a (patch)
treeb1166543512ce59da56caee133128f7f1cd2d119
parent295203cc1c99d7e21059e6e1fb00ea53cf4f1fb9 (diff)
global-functions: silence fetch
-rw-r--r--global-functions8
1 files changed, 4 insertions, 4 deletions
diff --git a/global-functions b/global-functions
index 7425273..fbc3f4a 100644
--- a/global-functions
+++ b/global-functions
@@ -115,7 +115,7 @@
/ tool fetch check-certificate=yes-without-crl \
($ScriptUpdatesBaseUrl . "certs/" . \
$UrlFileName . $ScriptUpdatesUrlSuffix) \
- dst-path=$LocalFileName;
+ dst-path=$LocalFileName as-value;
$WaitForFile $LocalFileName;
/ certificate import file-name=$LocalFileName passphrase="";
/ file remove $LocalFileName;
@@ -350,7 +350,7 @@
http-data=("chat_id=" . ($Message->"chatid") . \
"&disable_notification=" . ($Message->"silent") . \
"&disable_web_page_preview=true&parse_mode=" . ($Message->"parsemode") . \
- "&text=" . ($Message->"text"));
+ "&text=" . ($Message->"text")) as-value;
:set ($TelegramQueue->$Id);
} on-error={
$LogPrintExit2 debug $0 ("Sending queued Telegram message failed.") false;
@@ -520,7 +520,7 @@
:local WwwVal [ / ip service get www ];
/ ip service set www address=127.0.0.1/32 disabled=no port=80;
:do {
- / tool fetch http://127.0.0.1/ dst-path=($Dir . "/tmp");
+ / tool fetch http://127.0.0.1/ dst-path=($Dir . "/tmp") as-value;
$WaitForFile ($Dir . "/tmp");
/ file remove ($Dir . "/tmp");
} on-error={
@@ -908,7 +908,7 @@
/ tool fetch check-certificate=yes-without-crl output=none http-method=post \
("https://api.telegram.org/bot" . $TelegramTokenId . "/sendMessage") \
http-data=("chat_id=" . $ChatId . "&disable_notification=" . $Silent . \
- "&disable_web_page_preview=true&parse_mode=" . $ParseMode . "&text=" . $Text);
+ "&disable_web_page_preview=true&parse_mode=" . $ParseMode . "&text=" . $Text) as-value;
} on-error={
$LogPrintExit2 info $0 ("Failed sending telegram notification! Queuing...") false;