This commit is contained in:
Kai Hendry
2012-05-10 15:35:02 +08:00
parent f850607317
commit 43b08e2699

View File

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