Shell scripts
Permissions
First, it’s useful for the script file to begin with a shebang and reference to the shell you want to use:
#!/bin/bash
...
Next, check the script file’s permissions to verify that the executable bit is set:
ls -l script-filename.sh
To update:
chmod a+x