Fix for `line 233: [: !=: unary operator expected`.
This commit is contained in:
parent
7a7a59691e
commit
c49f8e6a85
2
telegram
2
telegram
|
@ -230,7 +230,7 @@ for id in "${CHATS[@]}"; do
|
|||
fi
|
||||
|
||||
if [ "$HAS_JQ" = true ]; then
|
||||
if [ `jq -r '.ok' <<< "$response"` != "true" ]; then
|
||||
if [ "`jq -r '.ok' <<< "$response"`" != "true" ]; then
|
||||
echo "Telegram reported following error:"
|
||||
jq -r '"\(.error_code): \(.description)"' <<< "$response"
|
||||
echo "Quitting."
|
||||
|
|
Loading…
Reference in New Issue