To find out in which folder the script being executed is located, no matter where it is called from
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"Il n'y a pas de questions bêtes

Photo de Emile Perron sur Unsplash
To find out in which folder the script being executed is located, no matter where it is called from
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"