Fix for `line 233: [: !=: unary operator expected`.

This commit is contained in:
Fabian Schlenz 2017-02-15 12:13:22 +01:00
parent 7a7a59691e
commit c49f8e6a85
1 changed files with 1 additions and 1 deletions

View File

@ -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."