From 27b228a54eb79887cbfa464fe15b5d4b45ec21da Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 8 Mar 2013 12:29:07 +0100 Subject: [PATCH] more drama --- liveboot_garbage_collection.sh | 2 ++ 1 file changed, 2 insertions(+) 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: " -- 2.39.5