2
0
Fork 0

sh.zio.backup: add check to make sure mountpoint is ready

main
Ducky 2023-08-22 22:04:21 +01:00
parent 2402a4b42d
commit 8d53ba1319
1 changed files with 6 additions and 0 deletions

View File

@ -323,6 +323,12 @@ elif [[ "$1" == "toggle-mount" ]]; then
else
say info "Mounting: $restic_mount_path"
invoke_restic mount "$restic_mount_path" &>/dev/null & disown;
while true; do
if [[ $(test_restic_mount) == 0 ]]; then
say "Mountpoint ready at '$restic_mount_path'"
fi
done
fi
else
command="$1"