shell script to mount samba share with " " in the remote path
I am trying to write a script that will allow me to avoid having to type:
mount -t smbfs -o username=foo,password=bar //myserver/share /mnt/smb
every time I want to mount a samba share.
What i have is:
mount -t smbfs -o username=foo,password=bar //192.168.0.$1 /mnt/smb
This works with a remote share like:
But not with:
myscript.sh 101/My Shared Folder
How can I modify the script(or the way I'm using it) to allow remote paths with " " (spaces)?
I tried both:
myscript.sh "101/My Shared Folder"
myscript.sh '101/My Shared Folder'