From 6ad78d4e2ca8fce958e932486215430bc0595f37 Mon Sep 17 00:00:00 2001 From: Ducky Date: Sat, 30 Mar 2024 16:43:10 +0000 Subject: [PATCH] sh.zio.backup: add prototyping --- usr/local/bin/sh.zio.backup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr/local/bin/sh.zio.backup b/usr/local/bin/sh.zio.backup index c089aaf..d8ab074 100755 --- a/usr/local/bin/sh.zio.backup +++ b/usr/local/bin/sh.zio.backup @@ -81,12 +81,15 @@ function invoke_restic() { while true; do exec 3>&1 - + restic_out="$("$restic_path" \ --cache-dir "$cache_dir" \ --password-file "$restic_repo_passwd_file" \ --repo "$(cat $restic_repo_file)" \ $command $args | tee /dev/fd/3)" + + echo "------" + echo "$restic_out" if [[ $? == 0 ]]; then break