sh.zio.backup: add check to make sure mountpoint is ready
parent
2402a4b42d
commit
8d53ba1319
|
@ -323,6 +323,12 @@ elif [[ "$1" == "toggle-mount" ]]; then
|
||||||
else
|
else
|
||||||
say info "Mounting: $restic_mount_path"
|
say info "Mounting: $restic_mount_path"
|
||||||
invoke_restic mount "$restic_mount_path" &>/dev/null & disown;
|
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
|
fi
|
||||||
else
|
else
|
||||||
command="$1"
|
command="$1"
|
||||||
|
|
Loading…
Reference in New Issue