]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fixup fixup: implement proper garbage collection, delete results if jenkins logs...
authorHolger Levsen <holger@layer-acht.org>
Wed, 17 Oct 2012 09:17:55 +0000 (11:17 +0200)
committerHolger Levsen <holger@layer-acht.org>
Wed, 17 Oct 2012 09:17:55 +0000 (11:17 +0200)
extract_storage_kernel+modules.sh

index 47b653ead6920e085e0a2c3515d2f24f7cc5cc98..4ee5bf6990f85fd2994c6c100fef3633f33c4cae 100755 (executable)
@@ -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"