mirror of
https://github.com/deajan/obackup.git
synced 2025-01-12 07:03:54 +01:00
Reverted exit code handling
This commit is contained in:
parent
2db6a9ca29
commit
eead765d69
@ -455,12 +455,14 @@ function ListRecursiveBackupDirectories {
|
|||||||
local excluded
|
local excluded
|
||||||
local fileArray
|
local fileArray
|
||||||
|
|
||||||
|
if [ "$RECURSIVE_DIRECTORY_LIST" == "" ]; then
|
||||||
|
fi
|
||||||
# Return values from subfunctions can be 0 (no error), 1 (only errors) or 2 (some errors). Do process output except on 1 return code
|
# Return values from subfunctions can be 0 (no error), 1 (only errors) or 2 (some errors). Do process output except on 1 return code
|
||||||
Logger "Listing directories to backup." "NOTICE"
|
Logger "Listing directories to backup." "NOTICE"
|
||||||
if [ "$BACKUP_TYPE" == "local" ] || [ "$BACKUP_TYPE" == "push" ]; then
|
if [ "$BACKUP_TYPE" == "local" ] || [ "$BACKUP_TYPE" == "push" ]; then
|
||||||
_ListRecursiveBackupDirectoriesLocal &
|
_ListRecursiveBackupDirectoriesLocal &
|
||||||
WaitForTaskCompletion $! $SOFT_MAX_EXEC_TIME_FILE_TASK $HARD_MAX_EXEC_TIME_FILE_TASK $SLEEP_TIME $KEEP_LOGGING true true false
|
WaitForTaskCompletion $! $SOFT_MAX_EXEC_TIME_FILE_TASK $HARD_MAX_EXEC_TIME_FILE_TASK $SLEEP_TIME $KEEP_LOGGING true true false
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
output_file=""
|
output_file=""
|
||||||
else
|
else
|
||||||
output_file="$RUN_DIR/$PROGRAM._ListRecursiveBackupDirectoriesLocal.$SCRIPT_PID.$TSTAMP"
|
output_file="$RUN_DIR/$PROGRAM._ListRecursiveBackupDirectoriesLocal.$SCRIPT_PID.$TSTAMP"
|
||||||
@ -468,7 +470,7 @@ function ListRecursiveBackupDirectories {
|
|||||||
elif [ "$BACKUP_TYPE" == "pull" ]; then
|
elif [ "$BACKUP_TYPE" == "pull" ]; then
|
||||||
_ListRecursiveBackupDirectoriesRemote &
|
_ListRecursiveBackupDirectoriesRemote &
|
||||||
WaitForTaskCompletion $! $SOFT_MAX_EXEC_TIME_FILE_TASK $HARD_MAX_EXEC_TIME_FILE_TASK $SLEEP_TIME $KEEP_LOGGING true true false
|
WaitForTaskCompletion $! $SOFT_MAX_EXEC_TIME_FILE_TASK $HARD_MAX_EXEC_TIME_FILE_TASK $SLEEP_TIME $KEEP_LOGGING true true false
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
output_file=""
|
output_file=""
|
||||||
else
|
else
|
||||||
output_file="$RUN_DIR/$PROGRAM._ListRecursiveBackupDirectoriesRemote.$SCRIPT_PID.$TSTAMP"
|
output_file="$RUN_DIR/$PROGRAM._ListRecursiveBackupDirectoriesRemote.$SCRIPT_PID.$TSTAMP"
|
||||||
|
Loading…
Reference in New Issue
Block a user