From d454e1a5388b9e7016f096d1cbc7ca388c2fa355 Mon Sep 17 00:00:00 2001 From: Ducky Date: Tue, 22 Aug 2023 01:46:37 +0100 Subject: [PATCH] sh.zio.backup: fix broken logic --- 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 b914e51..1fc1ca0 100755 --- a/usr/local/bin/sh.zio.backup +++ b/usr/local/bin/sh.zio.backup @@ -49,7 +49,7 @@ function invoke_restic() { case "$(cat "$restic_repo_file")" in "/"*) - if [[ ! -d "$(cat "$restic_repo_file")" ]]; + if [[ ! -d "$(cat "$restic_repo_file")" ]]; then say warning "'$(cat "$restic_repo_file")' does not exist. Creating directory..." mkdir -p "$(cat "$restic_repo_file")" fi