From 89cb244b2d1759451c065ebb249c50774df618b9 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 14 Sep 2012 13:15:36 +0200 Subject: [PATCH] do deletes --- liveboot_build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5