Skip to content

Commit

Permalink
Revert telegram change
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Oct 3, 2021
1 parent e72a89c commit 48308ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lgsm/functions/alert_telegram.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ EOF
)

fn_print_dots "Sending Telegram alert"
telegramsend=$(curl --connect-timeout 10 -sSL -H "Content-Type: application/json" -X POST -d "$(echo -n "${json}" | jq -c .)" ${curlcustomstring} "https://${telegramapi}/bot${telegramtoken}/sendMessage" | grep "error_code")
telegramsend=$(curl --connect-timeout 10 -sSL -H "Content-Type: application/json" -X POST -d """${json}""" ${curlcustomstring} "https://${telegramapi}/bot${telegramtoken}/sendMessage" | grep "error_code")

if [ -n "${telegramsend}" ]; then
fn_print_fail_nl "Sending Telegram alert: ${telegramsend}"
Expand Down

0 comments on commit 48308ec

Please sign in to comment.