From fe3eb3f368136decd1f4c3b50071cbee38b445e8 Mon Sep 17 00:00:00 2001 From: Amand Tihon Date: Sat, 21 Feb 2009 12:46:31 +0100 Subject: [PATCH] Replace lftp's call to 'rmdir' by calls to 'rm -rf'. --- brioche | 4 ++-- changelog | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 diff --git a/changelog b/changelog index 5f7b908..14b8048 100644 --- a/changelog +++ b/changelog @@ -1,6 +1,6 @@ brioche 1.2 [ Amand Tihon] - + * Replace lftp's call to 'rmdir' by calls to 'rm -rf'. brioche 1.1 -- 2.39.5