forked from extern/shorewall_code
Correct 'restore' exit status
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
5ae062317f
commit
4a410c7b4c
@ -1805,6 +1805,7 @@ dump_command() {
|
|||||||
restore_command() {
|
restore_command() {
|
||||||
local finished
|
local finished
|
||||||
finished=0
|
finished=0
|
||||||
|
local result
|
||||||
|
|
||||||
while [ $finished -eq 0 -a $# -gt 0 ]; do
|
while [ $finished -eq 0 -a $# -gt 0 ]; do
|
||||||
option=$1
|
option=$1
|
||||||
@ -1869,8 +1870,11 @@ restore_command() {
|
|||||||
progress_message3 "Restoring $g_product..."
|
progress_message3 "Restoring $g_product..."
|
||||||
|
|
||||||
run_it $g_restorepath restore && progress_message3 "$g_product restored from ${VARDIR}/$RESTOREFILE"
|
run_it $g_restorepath restore && progress_message3 "$g_product restored from ${VARDIR}/$RESTOREFILE"
|
||||||
|
result=$?
|
||||||
|
|
||||||
[ -n "$g_nolock" ] || mutex_off
|
[ -n "$g_nolock" ] || mutex_off
|
||||||
|
|
||||||
|
exit $result
|
||||||
else
|
else
|
||||||
echo "File $g_restorepath: file not found"
|
echo "File $g_restorepath: file not found"
|
||||||
[ -n "$g_nolock" ] || mutex_off
|
[ -n "$g_nolock" ] || mutex_off
|
||||||
|
Loading…
Reference in New Issue
Block a user