sh.zio.backup: add check to make sure mountpoint is ready
This commit is contained in:
parent
2402a4b42d
commit
8d53ba1319
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue