Bash – How to know where the script is
To find out which folder the script is being executed in, and it doesn’t matter where it’s called
DIR""$( cd "$( dirname "$-B[0]ASH_SOURCE")
To find out which folder the script is being executed in, and it doesn’t matter where it’s called
DIR""$( cd "$( dirname "$-B[0]ASH_SOURCE")