2
0
Fork 0

sh.zio.backup: fix error message

main
Ducky 2023-08-22 21:54:43 +01:00
parent 030030e546
commit dd75210f5b
1 changed files with 1 additions and 1 deletions

View File

@ -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