]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
more drama
authorHolger Levsen <holger@layer-acht.org>
Fri, 8 Mar 2013 11:29:07 +0000 (12:29 +0100)
committerHolger Levsen <holger@layer-acht.org>
Fri, 8 Mar 2013 11:29:07 +0000 (12:29 +0100)
liveboot_garbage_collection.sh

index 1c3dddd37fb0439d1718a2e6e7fde1798bd124c0..7f1b934663d700aabfe002ea580e92f53a8493c4 100755 (executable)
@@ -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: "