I have a script on my Mac Desktop:
the content is:
cp "foo/foo.txt" "bar/foo.txt"
The script is set as executable.
Desktop/bar and the file
But when I double click on the executable, I see the error messages "command not found" and "no such file or directory".
The output is:
Last login: Mon Nov 25 15:56:19 on ttys000 CompName:~ MyName$ /Users/MyName/Desktop/myProg.command ; exit; cp: foo/foo.txt No such file or directory : command not found/myProg.command: line 2: : command not found/myProg.command: line 3: logout [Process completed]
How can I fix that?