I don't trust test's boolean operators.
[invirt/scripts/git-hooks.git] / super / update
index 29208ba..3e74b23 100755 (executable)
@@ -13,7 +13,7 @@ if [ -z "$GIT_DIR" ]; then
         exit 1
 fi
 
         exit 1
 fi
 
-if [ -z "$ref" -o -z "$oldrev" -o -z "$newrev" ]; then
+if [ -z "$ref" ] || [ -z "$oldrev" ] || [ -z "$newrev" ]; then
         echo "Usage: $0 <ref> <oldrev> <newrev>" >&2
         exit 1
 fi
         echo "Usage: $0 <ref> <oldrev> <newrev>" >&2
         exit 1
 fi