From: Holger Levsen Date: Thu, 15 Nov 2012 18:32:36 +0000 (+0100) Subject: cosmetics X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=234b648ab8821004fa419dd26243160098003d2f;p=profitbricks%2Fjenkins-build-scripts.git cosmetics --- diff --git a/liveboot_garbage_collection.sh b/liveboot_garbage_collection.sh index bae7eca..e1a2bfe 100755 --- a/liveboot_garbage_collection.sh +++ b/liveboot_garbage_collection.sh @@ -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