MAC Shell Scripting Issues
We are trying to deploy some software through K1000 that needs to have a custom shell script run. I have the DMG file and shell script zipped up in a package. I have the K1000 running sh myscript.sh and this seems to fail at the first line hdiutil attach mydmgfile.dmg. I get hdiutil: attach failed - No such file or directory.
Both the shell script and dmg file are in the same folder. I also get this error when running the shell script by hand.
What am I doing wrong to mount the DMG file? It should be as simple as running hdiutil attach mydmgfile.dmg.
I can run the hdiutil command by hand and it works fine, but from the script it does not.
Any help appreciated.