From f9540cc065692c7ca80735e7b08399459e0ea6d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Mon, 27 Jan 2025 22:59:26 +0100 Subject: [PATCH] Improve printing --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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