mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-08 16:54:10 +01:00
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:
parent
0864c22d26
commit
e88f0a8ad2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user