From: Alex Rousskov Date: Mon, 29 Nov 2010 23:12:27 +0000 (-0700) Subject: Prevent "chmod: cannot access btlayer..." errors during build tests. X-Git-Tag: take1~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1428486f4fe07911944dc65527de5834a47c59f2;p=thirdparty%2Fsquid.git Prevent "chmod: cannot access btlayer..." errors during build tests. --- diff --git a/test-builds.sh b/test-builds.sh index b1e011fdec..1d0ff39946 100755 --- a/test-builds.sh +++ b/test-builds.sh @@ -58,7 +58,9 @@ buildtest() { btlayer="bt${layer}" log=${btlayer}.log echo "TESTING: ${layer}" - chmod -R 777 ${btlayer} + if test -e ${btlayer}; then + chmod -R 777 ${btlayer}; + fi rm -f -r ${btlayer} || ( echo "FATAL: Failed to prepare test build sandpit." ; exit 1 ) mkdir ${btlayer} if test "${verbose}" = "yes" ; then