Posted on 11-05-2014 01:04 AM
I am trying to use the parameter function for my mountNetworkShare script in Casper. But when i add the share in parameter 8 in de JSS, the script wont accept it for some reason.
When i add the variable directly to the script, it will work without a problem.
Is the variable different when i fill it in the JSS ? Then in the script ?
For my share parameter is use : smb://server.company.com/share/
Posted on 11-05-2014 06:02 AM
When I've used this I still set the variable in the script, i.e.:
sharePath="$8"
but taking the value from the parameter thats passed to it. Then calling it back I use:
${sharePath}
It's worth adding a few echo lines in while troubleshooting so you can see what the script thinks the variable is being set to, i.e:
sharePath="$8"
echo "Share path set to: $sharePath"
Hope this helps!