Permalink
Browse files

Replace == with -eq or = as appropriate

  • Loading branch information...
1 parent 91b2ddf commit b4d51ec33c8e7d0817de6dc4931c7131e0c49591 Simon Whitaker committed May 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 gibo
View
@@ -111,14 +111,14 @@ fi
has_opts=0
has_args=0
for opt in $@; do
- if [ $( echo $opt | cut -c1) == "-" ]; then
+ if [ $( echo $opt | cut -c1) = "-" ]; then
has_opts=1
else
has_args=1
fi
done
-if [ $has_opts == 1 -a $has_args == 1 ]; then
+if [ $has_opts -eq 1 -a $has_args -eq 1 ]; then
usage
exit 1
fi

0 comments on commit b4d51ec

Please sign in to comment.