]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Prevent "chmod: cannot access btlayer..." errors during build tests.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 29 Nov 2010 23:12:27 +0000 (16:12 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 29 Nov 2010 23:12:27 +0000 (16:12 -0700)
test-builds.sh

index b1e011fdecee84cec823dd00bcd858959b22f627..1d0ff39946a250f25d8f46b1c27771b5d2712221 100755 (executable)
@@ -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