Permalink
Browse files

Make sure we don't get unary operator errors on the send_request func…

…tion
  • Loading branch information...
1 parent 3f5ddce commit 4db7ab07857bdd18b1d67170da1b62f238f700db @tomas tomas committed Oct 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/push
View
@@ -13,7 +13,7 @@ update_device_info_with(){
send_request "$check_url/devices/$device_key.xml" "-X PUT -u $api_key:x -d "$1""
get_status_code
- if [ $response_status == "200" ]; then
+ if [ "$response_status" == "200" ]; then
log " -- Device updated."
else
log " -- Couldn't update your device. Maybe the Control Panel is taking a bath."

0 comments on commit 4db7ab0

Please sign in to comment.