script directory

script_dir="$(dirname "$(readlink -f "$0")")"

Ref:-