I am working on a simple shell script (my first one) and cannot seem to figure out why this is failing when I run ./auto.sh baz. It was working initially when I had hard coded in the full destination path, but now that I want to use an argument it breaks. Any help would be awesome. Thanks!
#!/bin/sh
cp -ivr ./foo/bar.xcodeproj ./iOS/$1.xcodeproj
Try the following