How to get the path to the current script in bash
It's sometimes useful to be able to get the absolute path to the current script in bash: SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
It's sometimes useful to be able to get the absolute path to the current script in bash: SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"