From 0e8517da7936d3ae011ef6e98a420260c5598ed1 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 15 Nov 2012 19:32:36 +0100 Subject: [PATCH] cosmetics --- liveboot_garbage_collection.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5