From: Holger Levsen Date: Fri, 8 Mar 2013 11:29:07 +0000 (+0100) Subject: more drama X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=27b228a54eb79887cbfa464fe15b5d4b45ec21da;p=profitbricks%2Fjenkins-build-scripts.git more drama --- diff --git a/liveboot_garbage_collection.sh b/liveboot_garbage_collection.sh index 1c3dddd..7f1b934 100755 --- a/liveboot_garbage_collection.sh +++ b/liveboot_garbage_collection.sh @@ -35,6 +35,8 @@ for DIRECTORY in $FIRST_PASS ; do done if [ $KEPT -gt $WARNING_TRESHOLD ] ; then echo "Warning: $KEPT images being kept, while we can only keep $AMOUNT_TO_KEEP at maximum. Please delete some rejected images set to 'keep'. Ask Fabian for help, if needed." +elif [ $KEPT -ge $AMOUNT_TO_KEEP ] ; then + echo "Error: $KEPT images being kept, while we can only keep $AMOUNT_TO_KEEP at maximum. Please delete some rejected images set to 'keep'. Ask Fabian for help, if needed." fi for DIRECTORY in $SECOND_PASS ; do echo -n "$DIRECTORY: "