Ignore shellcheck error
This commit is contained in:
parent
fd653ad1e7
commit
24d93e3d18
@ -7,6 +7,7 @@ let
|
|||||||
pkgs.restic
|
pkgs.restic
|
||||||
];
|
];
|
||||||
text = ''
|
text = ''
|
||||||
|
# shellcheck disable=SC2031
|
||||||
if [ -z "$BACKUP_HELPER_DIRS" ]; then
|
if [ -z "$BACKUP_HELPER_DIRS" ]; then
|
||||||
echo "BACKUP_HELPER_DIRS is not set"
|
echo "BACKUP_HELPER_DIRS is not set"
|
||||||
exit 1;
|
exit 1;
|
||||||
@ -18,7 +19,7 @@ let
|
|||||||
if [ $rc -ne 0 ]; then
|
if [ $rc -ne 0 ]; then
|
||||||
echo "Backup of $i failed with exit code $rc:"
|
echo "Backup of $i failed with exit code $rc:"
|
||||||
echo "$output"
|
echo "$output"
|
||||||
exit_code=1;
|
exit_code="$rc";
|
||||||
else
|
else
|
||||||
echo "Backup of $i successful:"
|
echo "Backup of $i successful:"
|
||||||
echo "$output"
|
echo "$output"
|
||||||
|
Loading…
Reference in New Issue
Block a user