Fixed SCRIPT_DIR computation when CDPATH is set.

This commit is contained in:
Christophe Labouisse
2014-07-11 16:55:47 +02:00
parent 628667a2b0
commit 3ce6fc116d
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@
# exit on any error
set -e
SCRIPT_DIR=$(cd $(dirname $0); pwd)
SCRIPT_DIR=$(CDPATH="" cd $(dirname $0); pwd)
source $SCRIPT_DIR/config.sh