From: Holger Levsen Date: Wed, 17 Oct 2012 09:17:55 +0000 (+0200) Subject: fixup fixup: implement proper garbage collection, delete results if jenkins logs... X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=04fe130e9b2d7a16689b12f411b0dc6dc16b95bc;p=profitbricks%2Fjenkins-build-scripts.git fixup fixup: implement proper garbage collection, delete results if jenkins logs are deleted --- diff --git a/extract_storage_kernel+modules.sh b/extract_storage_kernel+modules.sh index 47b653e..4ee5bf6 100755 --- a/extract_storage_kernel+modules.sh +++ b/extract_storage_kernel+modules.sh @@ -61,7 +61,7 @@ for i in $(ls -at1) ; do echo $i # check if the jenkins build log still exists (and doesnt start with ".") # and if not, delete the old target as well - if [ ! -L $JOB_HOME/$i ] && [ "$i:0:1" != "." ] ; then + if [ ! -L $JOB_HOME/$i ] && [ "${i:0:1}" != "." ] ; then echo sudo rm -rfv ./$i else echo "keeping $i"