diff --git a/backup.sh b/backup.sh index 8b8d739..bc36554 100644 --- a/backup.sh +++ b/backup.sh @@ -33,10 +33,10 @@ if [ -n "$BACKUP_HELPER_COMMANDS" ]; then IFS=' ' read -r -a cmd_parts <<< "$value" if ! output=$(restic backup --stdin-filename "$key" --stdin-from-command -- "${cmd_parts[@]}"); then exit_code=1; - echo "Backup of $i failed with exit code $?:" + echo "Backup of $key failed with exit code $?:" echo "$output" else - echo "Backup of $i successful:" + echo "Backup of $key successful:" echo "$output" fi