From: Mark Andrews Date: Fri, 17 May 2013 01:26:33 +0000 (+1000) Subject: just use test -f X-Git-Tag: v9.9.3~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2284b7356dcaaa213adfd9d1832d8aba5403cd05;p=thirdparty%2Fbind9.git just use test -f --- diff --git a/util/branchsync.sh b/util/branchsync.sh index c5a850d4d52..e96a197ef32 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 }