From 90bc866389b9f8d71cbba57f2fd36f3ea5321596 Mon Sep 17 00:00:00 2001 From: "ekin.oener" Date: Sun, 5 Oct 2025 15:45:07 +0200 Subject: [PATCH] fix curl debug options --- alert-by-telegram.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/alert-by-telegram.sh b/alert-by-telegram.sh index a84b180..d364187 100755 --- a/alert-by-telegram.sh +++ b/alert-by-telegram.sh @@ -171,15 +171,15 @@ fi # Debug output or not? if [[ -z ${DEBUG-} ]]; then - CURLARGS="--silent --output /dev/null" + CURLARGS=(--silent --output /dev/null) else - CURLARGS=-v + CURLARGS=(-v) set -x echo -e "DEBUG MODE!" fi # And finally, send the message -/usr/bin/curl "${CURLARGS}" \ +/usr/bin/curl "${CURLARGS[@]}" \ --data-urlencode "chat_id=${TELEGRAM_CHATID}" \ --data-urlencode "text=${NOTIFICATION_MESSAGE}" \ --data-urlencode "parse_mode=HTML" \