From 0a9cf90391cf2ced2cf02b93c193e31ab0733569 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Wed, 30 Dec 2009 15:36:32 -0500 Subject: [PATCH] I don't trust test's boolean operators. svn path=/trunk/scripts/git-hooks/; revision=2813 --- sub/update | 2 +- super/update | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sub/update b/sub/update index fbdde3d..2986daa 100755 --- a/sub/update +++ b/sub/update @@ -13,7 +13,7 @@ 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 " >&2 exit 1 fi diff --git a/super/update b/super/update index 29208ba..3e74b23 100755 --- a/super/update +++ b/super/update @@ -13,7 +13,7 @@ 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 " >&2 exit 1 fi -- 1.7.9.5