From 2284b7356dcaaa213adfd9d1832d8aba5403cd05 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 17 May 2013 11:26:33 +1000 Subject: [PATCH] just use test -f --- util/branchsync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/branchsync.sh b/util/branchsync.sh index c5a850d4d5..e96a197ef3 100644 --- a/util/branchsync.sh +++ b/util/branchsync.sh @@ -40,7 +40,7 @@ restore_files () { git checkout HEAD -- doc/arm/*.html doc/arm/Bv9ARM.pdf git checkout HEAD -- bin/*/*.html bin/*/*.[0-9] # don't update the EXCLUDED file - if [ -n `git ls-files EXCLUDED` ]; then + if [ -f EXCLUDED ]; then git checkout HEAD -- EXCLUDED fi }