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

index 298321ca32ee55d16e659da1df6adb7ee2887c49..3652ada6c30c46320790afb82974808703da33cc 100755 (executable)
@@ -54,7 +54,7 @@ COUNT=0
 for i in $(ls -atd1 ./liveboot-*) ; do
         let COUNT=COUNT+1
         if [ $COUNT -gt $MAX ] ; then
-                rm -rfv $i
+                sudo rm -rfv ./$i
         else
                 echo "keeping $i"
         fi