From: Holger Levsen Date: Fri, 14 Sep 2012 11:15:36 +0000 (+0200) Subject: do deletes X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=89cb244b2d1759451c065ebb249c50774df618b9;p=profitbricks%2Fjenkins-build-scripts.git do deletes --- diff --git a/liveboot_build.sh b/liveboot_build.sh index deb6465..298321c 100755 --- a/liveboot_build.sh +++ b/liveboot_build.sh @@ -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