From 43b08e2699016f9072e471e3d0084dbc86cab95d Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Thu, 10 May 2012 15:35:02 +0800 Subject: [PATCH] quote --- fetch-tweets.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch-tweets.sh b/fetch-tweets.sh index fd71481..5677226 100755 --- a/fetch-tweets.sh +++ b/fetch-tweets.sh @@ -61,7 +61,7 @@ grep -iE 'rate|status' # show the interesting twitter rate limits mv $temp2 $temp -if test $(xmlstarlet sel -t -v "count(//statuses/status)" $temp 2>/dev/null) -eq 0 +if test "$(xmlstarlet sel -t -v "count(//statuses/status)" $temp 2>/dev/null)" -eq 0 then head $temp | grep -q "Over capacity" && echo "Twitter is OVER CAPACITY" if test "$2" && test "$since"