Fix sc2181

This commit is contained in:
Torjus Håkestad 2024-06-03 00:01:36 +02:00
parent 30050d68cd
commit f05fae6ebd

View File

@ -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"