macos make file executable

C++
chmod +x filename.shchmod 755 YourScriptName.sh
Source

Also in C++: