]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix path
authorHolger Levsen <holger@layer-acht.org>
Wed, 14 Nov 2012 18:13:54 +0000 (19:13 +0100)
committerHolger Levsen <holger@layer-acht.org>
Wed, 14 Nov 2012 18:13:54 +0000 (19:13 +0100)
liveboot_garbage_collection.sh

index 17a838e6ede23b9de0999c13cd217788e3d4ab4b..be41ab353483ce33125f0d9a682000950c227a36 100755 (executable)
@@ -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