• 0

can not run shell script from command line on mac


To run any script you need to have executable write of that script.
chmod 755 ./script_name.sh
chmod 755 - gives you full permission. It gives only read and execute permission to everyone else.