summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-11-07 20:46:37 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-11-07 20:46:37 -0800
commitf7aae6520e0bb7b6b08f0ee9c4841fbfaa99eb1b (patch)
tree65bd2939d1ed50f416784ffcf85a0ecfde9feea2
parentcc5b7cd6d1dc93acc850bace920da5286a2a68d6 (diff)
downloadnasmbuild-f7aae6520e0bb7b6b08f0ee9c4841fbfaa99eb1b.tar.gz
nasmbuild-f7aae6520e0bb7b6b08f0ee9c4841fbfaa99eb1b.tar.xz
nasmbuild-f7aae6520e0bb7b6b08f0ee9c4841fbfaa99eb1b.zip
No point in testing for the existence for a file in the same if statement
as a "cat". Just do the cat and let it fail if approporiate.
-rwxr-xr-xbuildall.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildall.sh b/buildall.sh
index 78467e4..812dff0 100755
--- a/buildall.sh
+++ b/buildall.sh
@@ -182,7 +182,7 @@ fi
(cd git && git tag) | while read tag; do
: $tag
tagref=$(cd git && git rev-parse "$tag")
- if [ ! -f "$excludedir"/"$tag" -o x$(cat "$excludedir"/"$tag") != x"$tagref" ]; then
+ if [ x$(cat "$excludedir"/"$tag" 2>/dev/null) != x"$tagref" ]; then
case "$tag" in
nasm-0.99.0[5-9]|nasm-0.99.[1-9]*|nasm-[1-9]*)
rel_version=$(echo "$tag" | sed -e 's/^nasm-//')