diff --git a/backup.nix b/backup.nix index e56c9a2..bd5cc21 100644 --- a/backup.nix +++ b/backup.nix @@ -7,7 +7,6 @@ let pkgs.restic ]; text = '' - # shellcheck disable=SC2031 if [ -z "$BACKUP_HELPER_DIRS" ]; then echo "BACKUP_HELPER_DIRS is not set" exit 1; @@ -18,7 +17,7 @@ let output=$(restic backup "$i"); if [ "$?" -ne 0 ]; then exit_code="$?"; - echo "Backup of $i failed with exit code $rc:" + echo "Backup of $i failed with exit code $?:" echo "$output" else echo "Backup of $i successful:"