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