diff --git a/backup.nix b/backup.nix index d2df465..94a376d 100644 --- a/backup.nix +++ b/backup.nix @@ -18,7 +18,7 @@ let if [ $rc -ne 0 ]; then echo "Backup of $i failed with exit code $rc:" echo "$output" - exit_code="$rc" + exit_code=1; else echo "Backup of $i successful:" echo "$output"