03 Oct 2017 - tags: bash
bash
This is the first line in almost all of the bash scripts I’m writing:
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"