Finish install/fallback cleanup -- take 2

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2678 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-09-13 17:24:35 +00:00
parent 0864c22d26
commit e88f0a8ad2

View File

@ -39,7 +39,7 @@ usage() # $1 = exit status
restore_directory() # $1 = directory to restore restore_directory() # $1 = directory to restore
{ {
if [ -d ${1}-${VERSION}.bkout ]; then 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
echo "$1 restored" echo "$1 restored"
else else