From 30050d68cd4b1cca3b43a5e5b34b5de7da0e8f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sun, 2 Jun 2024 23:59:14 +0200 Subject: [PATCH] Fix echo --- backup.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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:"