I don't trust test's boolean operators.
[invirt/scripts/git-hooks.git] / super / update
index 1e926e8..3e74b23 100755 (executable)
@@ -13,14 +13,14 @@ if [ -z "$GIT_DIR" ]; then
         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
 
 # --- Disallow all pushes
 
-echo "*** Pushing to the superrepo is not allowed" >&2
+echo "*** Pushing to the superproject is not allowed" >&2
 echo "***" >&2
-echo "*** If you would like to update the superrepo, use remctl" >&2
+echo "*** If you would like to update the superproject, use remctl" >&2
 exit 1