From: Holger Levsen Date: Wed, 14 Nov 2012 18:13:54 +0000 (+0100) Subject: fix path X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=b308849b38bdb5a86d91c78352290e9b89e41f30;p=profitbricks%2Fjenkins-build-scripts.git fix path --- diff --git a/liveboot_garbage_collection.sh b/liveboot_garbage_collection.sh index 17a838e..be41ab3 100755 --- a/liveboot_garbage_collection.sh +++ b/liveboot_garbage_collection.sh @@ -4,6 +4,7 @@ # GPL2 licenced #set -x +set -e #export # no configuration below this block @@ -18,10 +19,11 @@ echo "- second, it will go through all liveboot images (started with the latest) echo KEPT=0 +SCRIPT_PATH=$(dirname $0) FIRST_PASS=$(ls -1r $LIVEBOOT_IMAGE_PATH) SECOND_PASS="" for DIRECTORY in $FIRST_PASS ; do - if ./keep_liveboot.py "$DIRECTORY" ; then + if $SCRIPT_PATH/keep_liveboot.py "$DIRECTORY" ; then echo -n "$DIRECTORY: " echo keep flag set, keeping it. else