From e88f0a8ad2d908913df81d2357c0afe4ce77842e Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 13 Sep 2005 17:24:35 +0000 Subject: [PATCH] Finish install/fallback cleanup -- take 2 git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2678 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/fallback.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/fallback.sh b/Shorewall/fallback.sh index b1da4b814..48d601cb0 100755 --- a/Shorewall/fallback.sh +++ b/Shorewall/fallback.sh @@ -39,7 +39,7 @@ usage() # $1 = exit status restore_directory() # $1 = directory to restore { if [ -d ${1}-${VERSION}.bkout ]; then - if mv -f $1 ${1}-${VERSION} && mv ${1}-${VERSION}.bkout $1; then + if mv -f $1 ${1}-${VERSION} && mv ${1}-${VERSION}.bkout $1 && rm -rf ${1}-${VERSION}; then echo echo "$1 restored" else