Mount a share and retry up to 10 times if it fails

mount

  • Mount Network File System (NFS) network shares.
    More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/mount>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

mount -o retry={{retries}} \\{{computer_name}}\{{share_name}} {{Z:}}

click the source code to copy install mount on any operating system with command-not-found.com