Fix echo
This commit is contained in:
parent
33f125a7e8
commit
30050d68cd
@ -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:"
|
||||
|
Loading…
Reference in New Issue
Block a user