I'm new to OSX, and don't use the commandline that often. I'm trying to use a script to do some automatic deployment, but when I execute the script it is looking for a directory.
I tried:
sh myscript.sh '/Users/profiles/Desktop/Development'
sh myscript.sh /Users/profiles/Desktop/Development
sh myscript.sh -/Users/profiles/Desktop/Development
but I keep getting "No Such file or directory". What is the proper way to do this?
I know this is a basic question, but I can't seem to find a simple answer. Everything I find on google is much more advanced..
UPDATE: In the script, it's looking for the path like this:
DIR_DEVELOP=$@
if [ -z $DIR_DEVELOP ]; then
echo "Syntax: myscript.sh <destination>"
exit 1