X-Git-Url: https://git.alrj.org/?p=brioche.git;a=blobdiff_plain;f=brioche;h=ca4501d9c167fd688e6faf93da33af68a530f083;hp=8e7e6322be1a26a7251f2afa900b2eaf3aee88cc;hb=fe3eb3f368136decd1f4c3b50071cbee38b445e8;hpb=234cc50467cfd3c9adfbfd4a9d9ac1a5b10499bd diff --git a/brioche b/brioche index 8e7e632..ca4501d 100755 --- a/brioche +++ b/brioche @@ -294,7 +294,7 @@ ftp_rotate() # Build commands # Remove oldest run if [ "$FTP_KEEP" != "0" ]; then - commands="$commands; rmdir ${lastrun}" + commands="$commands; rm -rf ${lastrun}" # Move everything back for run in `seq $FTP_KEEP -1 2`; do @@ -305,7 +305,7 @@ ftp_rotate() # Move "old latest" to run-1 commands="$commands; mv latest run-1" else - commands="$commands; rmdir latest" + commands="$commands; rm -rf latest" fi # Create "new latest" directory