From dd75210f5bb6b001da0ea4ffbe4689be3875439d Mon Sep 17 00:00:00 2001 From: Ducky Date: Tue, 22 Aug 2023 21:54:43 +0100 Subject: [PATCH] sh.zio.backup: fix error message --- usr/local/bin/sh.zio.backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/bin/sh.zio.backup b/usr/local/bin/sh.zio.backup index 0f7d6df..4247e8f 100755 --- a/usr/local/bin/sh.zio.backup +++ b/usr/local/bin/sh.zio.backup @@ -304,6 +304,7 @@ elif [[ "$1" == "rescue" ]]; then --target "/srv/dumps/$host/restic/$snapshot" \ "$snapshot" elif [[ "$1" == "toggle-mount" ]]; then + mkdir -p "$restic_mount_path" test_restic_mount="$(mountpoint "$restic_mount_path")" if [[ $? == 0 ]]; then @@ -318,7 +319,6 @@ elif [[ "$1" == "toggle-mount" ]]; then fi else say info "Mounting: $restic_mount_path" - mkdir -p "$restic_mount_path" invoke_restic mount "$restic_mount_path" &>/dev/null & disown; fi else