## Problem In scripts ROOD_DIR get by `dirname "$0"', but it don't work if run script with `source`. ## Solution Get `ROOT_DIR` with `dirname "${BASH_SOURCE[0]}"`
Problem
In scripts ROOD_DIR get by
dirname "$0"', but it don't work if run script withsource`.Solution
Get
ROOT_DIRwithdirname "${BASH_SOURCE[0]}"