mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-25 12:13:29 +02:00
Finish install/fallback cleanup -- take 3
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2682 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
ae061c61b4
commit
a47ca846fa
@ -39,9 +39,10 @@ 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 && rm -rf ${1}-${VERSION}; then
|
if mv -f $1 ${1}-${VERSION} && mv ${1}-${VERSION}.bkout $1; then
|
||||||
echo
|
echo
|
||||||
echo "$1 restored"
|
echo "$1 restored"
|
||||||
|
rm -rf ${1}-${VERSION}
|
||||||
else
|
else
|
||||||
echo "ERROR: Could not restore $1"
|
echo "ERROR: Could not restore $1"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user