Improve printing
This commit is contained in:
parent
945a5ea3dd
commit
f9540cc065
@ -33,10 +33,10 @@ if [ -n "$BACKUP_HELPER_COMMANDS" ]; then
|
|||||||
IFS=' ' read -r -a cmd_parts <<< "$value"
|
IFS=' ' read -r -a cmd_parts <<< "$value"
|
||||||
if ! output=$(restic backup --stdin-filename "$key" --stdin-from-command -- "${cmd_parts[@]}"); then
|
if ! output=$(restic backup --stdin-filename "$key" --stdin-from-command -- "${cmd_parts[@]}"); then
|
||||||
exit_code=1;
|
exit_code=1;
|
||||||
echo "Backup of $i failed with exit code $?:"
|
echo "Backup of $key failed with exit code $?:"
|
||||||
echo "$output"
|
echo "$output"
|
||||||
else
|
else
|
||||||
echo "Backup of $i successful:"
|
echo "Backup of $key successful:"
|
||||||
echo "$output"
|
echo "$output"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user