Merge branch 'main' of git.ivanch.me:ivanch/server-scripts
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 4s
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 4s
This commit is contained in:
@@ -342,7 +342,9 @@ backup_folder() {
|
||||
if [[ -n "$filtered_output" ]]; then
|
||||
log_warn "7z output for '${folder_path}': ${filtered_output}"
|
||||
fi
|
||||
if (( rc == 0 || (rc == 1 && -z "$filtered_output") )); then
|
||||
if (( rc == 0 )); then
|
||||
return 0
|
||||
elif (( rc == 1 )) && [[ -z "$filtered_output" ]]; then
|
||||
return 0
|
||||
fi
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user