set a file to be executable on a mac code example
Example 1: macos make file executable
chmod +x filename.sh
Example 2: macos make file executable
chmod 755 YourScriptName.sh
chmod +x filename.sh
chmod 755 YourScriptName.sh