Shell

Path

shell - which one of these paths has the priority: /usr or /usr/local - Unix & Linux Stack Exchange

set via /etc/paths.d directly

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