]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
do deletes
authorHolger Levsen <holger@layer-acht.org>
Fri, 14 Sep 2012 11:15:36 +0000 (13:15 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 14 Sep 2012 11:15:36 +0000 (13:15 +0200)
liveboot_build.sh

index deb646545a0005475aad27ea1615f6128f6dc179..298321ca32ee55d16e659da1df6adb7ee2887c49 100755 (executable)
@@ -44,6 +44,7 @@ cd /srv/build/
 sudo rm liveboot -Rf
 
 # TODO: implement better garbage collection, allow to keep images
+# TODO: needs to update the db too
 #
 # cleanup $RSYNC_SRC, keep MAX number of images
 #
@@ -53,7 +54,7 @@ COUNT=0
 for i in $(ls -atd1 ./liveboot-*) ; do
         let COUNT=COUNT+1
         if [ $COUNT -gt $MAX ] ; then
-                echo rm -rfv $i
+                rm -rfv $i
         else
                 echo "keeping $i"
         fi