From 04fe130e9b2d7a16689b12f411b0dc6dc16b95bc Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 17 Oct 2012 11:17:55 +0200 Subject: [PATCH] fixup fixup: implement proper garbage collection, delete results if jenkins logs are deleted --- extract_storage_kernel+modules.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.39.5