SyntaxFix
Write A Post
Hire A Developer
Questions
Try chmod u+x foo.sh instead of chmod +x foo.sh if you have trouble with the guides above. This worked for me when the other solutions did not.
chmod u+x foo.sh
chmod +x foo.sh