From 24d93e3d18e21a1114a3e81fee1457ebb7ea83ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sun, 2 Jun 2024 23:56:20 +0200 Subject: [PATCH] Ignore shellcheck error --- backup.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup.nix b/backup.nix index 94a376d..be2102e 100644 --- a/backup.nix +++ b/backup.nix @@ -7,6 +7,7 @@ let pkgs.restic ]; text = '' + # shellcheck disable=SC2031 if [ -z "$BACKUP_HELPER_DIRS" ]; then echo "BACKUP_HELPER_DIRS is not set" exit 1; @@ -18,7 +19,7 @@ let if [ $rc -ne 0 ]; then echo "Backup of $i failed with exit code $rc:" echo "$output" - exit_code=1; + exit_code="$rc"; else echo "Backup of $i successful:" echo "$output"