projects
/
invirt/scripts/git-hooks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ed8d68
)
I don't trust test's boolean operators.
master
author
Evan Broder
<broder@mit.edu>
Wed, 30 Dec 2009 20:36:32 +0000
(15:36 -0500)
committer
Evan Broder
<broder@mit.edu>
Wed, 30 Dec 2009 20:36:32 +0000
(15:36 -0500)
svn path=/trunk/scripts/git-hooks/; revision=2813
sub/update
patch
|
blob
|
history
super/update
patch
|
blob
|
history
diff --git
a/sub/update
b/sub/update
index
fbdde3d
..
2986daa
100755
(executable)
--- 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 <ref> <oldrev> <newrev>" >&2
exit 1
fi
diff --git
a/super/update
b/super/update
index
29208ba
..
3e74b23
100755
(executable)
--- 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 <ref> <oldrev> <newrev>" >&2
exit 1
fi