Tuesday, September 22, 2015

Reliably determine a script's directory path in bash


cd $(dirname $0); DIR=$PWD; cd - >/dev/null

No comments: