Fix sc2181
This commit is contained in:
parent
30050d68cd
commit
f05fae6ebd
@ -14,8 +14,7 @@ let
|
||||
exit_code=0;
|
||||
for i in ''${BACKUP_HELPER_DIRS//,/ }; do
|
||||
echo "Starting backup of $i";
|
||||
output=$(restic backup "$i");
|
||||
if [ "$?" -ne 0 ]; then
|
||||
if ! output=$(restic backup "$i"); then
|
||||
exit_code="$?";
|
||||
echo "Backup of $i failed with exit code $?:"
|
||||
echo "$output"
|
||||
|
Loading…
Reference in New Issue
Block a user