I have
rclone mount "$src" "$dst" $flags
# wait for the mount to be ready
until findmnt --mountpoint "$dst" --mtab >/dev/null; do :; done
at the end of my rclone mount
wrapper script. It's easy to understand and works very well. findmnt
is part of the util-linux
package so if you're on Linux, you probably have it installed already.