Ignore shellcheck error

This commit is contained in:
Torjus Håkestad 2024-06-02 23:56:20 +02:00
parent fd653ad1e7
commit 24d93e3d18

View File

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