Apparently in bash you can get the working directory from where a script is called with this:
script_dir=$(cd $(dirname"${BASH_SOURCE[0]}") && pwd)May 27, 20261 min read
Apparently in bash you can get the working directory from where a script is called with this:
script_dir=$(cd $(dirname"${BASH_SOURCE[0]}") && pwd)