Bugfix for failing message sending if debugging was disabled.
This commit is contained in:
parent
4e00d71c8b
commit
98913400e5
2
telegram
2
telegram
|
@ -220,8 +220,8 @@ fi
|
|||
|
||||
for id in "${CHATS[@]}"; do
|
||||
response=`curl $CURL_OPTIONS --form-string chat_id=$id $URL$TOKEN/$METHOD <<< "$TEXT"`
|
||||
log "Response was: $response"
|
||||
status=$?
|
||||
log "Response was: $response"
|
||||
if [ $status -ne 0 ]; then
|
||||
echo "curl reported an error. Exit code was: $status."
|
||||
echo "Response was: $response"
|
||||
|
|
Loading…
Reference in New Issue