sh.zio.backup: fix broken logic
parent
85eb0cf874
commit
d454e1a538
|
@ -49,7 +49,7 @@ function invoke_restic() {
|
||||||
|
|
||||||
case "$(cat "$restic_repo_file")" in
|
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..."
|
say warning "'$(cat "$restic_repo_file")' does not exist. Creating directory..."
|
||||||
mkdir -p "$(cat "$restic_repo_file")"
|
mkdir -p "$(cat "$restic_repo_file")"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue