]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
cosmetics
authorHolger Levsen <holger@layer-acht.org>
Thu, 15 Nov 2012 18:32:36 +0000 (19:32 +0100)
committerHolger Levsen <holger@layer-acht.org>
Thu, 15 Nov 2012 18:32:36 +0000 (19:32 +0100)
liveboot_garbage_collection.sh

index bae7eca6b42237e236c3aa39a3d98050edc8e742..e1a2bfe8dcaee5cfc12685f33af9e2aef3620e73 100755 (executable)
@@ -27,6 +27,7 @@ for DIRECTORY in $FIRST_PASS ; do
        if $SCRIPT_PATH/cleanup_liveboot.py "keep" "$DIRECTORY" ; then 
                echo -n "$DIRECTORY: "
                echo keep flag set, keeping it.
+               let "KEPT=KEPT+1"
        else 
                SECOND_PASS="$SECOND_PASS $DIRECTORY"
        fi
@@ -34,7 +35,7 @@ done
 for DIRECTORY in $SECOND_PASS ; do
        echo -n "$DIRECTORY: "
        if  [ $KEPT -le $AMOUNT_TO_KEEP ] ; then
-               echo keep it, there is enough space left...
+               echo "keep it, only $KEPT images kept so far."
                let "KEPT=KEPT+1"
        else
                echo "deleted."
@@ -53,3 +54,4 @@ echo "Free diskspace on sagunt:"
 df -h $LIVEBOOT_IMAGE_PATH
 echo
 echo "The liveboot images are copied to other servers which might not have as much space available."
+echo