summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorgjoranv <gv@yahoo-inc.com>2017-06-20 12:34:40 +0200
committergjoranv <gv@yahoo-inc.com>2017-06-20 12:36:37 +0200
commitc7334d4bea365dbea7d1df357412a679ce6b9292 (patch)
tree60aa9d6d3d60f5167ad4c39a444a461fa4f58567 /docker
parent91104654d2bd62c30c0adf01c150c2cb2a642eb0 (diff)
Get script dir in a safer way
.. that works with symlinks and on travis-ci. (See comment from 'tvlooy' on https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within)
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/vespa-ci.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/vespa-ci.sh b/docker/vespa-ci.sh
index 1cfe1fbb455..3e990bb2991 100755
--- a/docker/vespa-ci.sh
+++ b/docker/vespa-ci.sh
@@ -8,7 +8,7 @@ if [ $# -ne 1 ]; then
exit 1
fi
-DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
+DIR=$(dirname $(readlink -f $0))
cd $DIR
GIT_COMMIT=$1