]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
be more verbose
authorHolger Levsen <holger@layer-acht.org>
Thu, 21 Jun 2012 13:17:42 +0000 (15:17 +0200)
committerHolger Levsen <holger@layer-acht.org>
Thu, 21 Jun 2012 13:17:42 +0000 (15:17 +0200)
live_build.sh

index 0fdd29e91531f6c343af602ae75978da79685412..d6bb3937699f333a1b0a56a5b00804957d75c469 100755 (executable)
@@ -42,8 +42,10 @@ cd /srv/mirror/live-build/
 COUNT=0
 for i in $(ls -artd1 ./${LIVE_TYPE}-*) ; do
        let COUNT=COUNT+1
-       if [ $COUNT > 2 ] ; then
+       if [ $COUNT -gt 2 ] ; then
                echo "would rm -rf $i" 
+       else
+               echo "would keep $i"
        fi
 done