shell: test -a|o is not POSIX (#250)
[rsync.git] / packaging / prep-auto-dir
index 1e5a296565b3cfcec4c52d5e52ed618296316284..b67f390ab045f69fadc4839e9a55138e4bb6f66d 100755 (executable)
@@ -13,7 +13,7 @@
 # run "make distclean" before creating the auto-build-save dir.
 
 auto_top='auto-build-save'
-if test -d $auto_top -a -d .git; then
+if test -d $auto_top && test -d .git; then
     desired_branch=`git rev-parse --abbrev-ref HEAD | tr / %`
     if test "$desired_branch" = HEAD; then
        echo "ERROR: switch to the right build dir manually when in detached HEAD mode." 1>&2