Ignore shellcheck error
This commit is contained in:
parent
fd653ad1e7
commit
24d93e3d18
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user