summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorgjoranv <gv@yahoo-inc.com>2017-06-22 11:57:35 +0200
committergjoranv <gv@yahoo-inc.com>2017-06-22 11:57:35 +0200
commit81d47dd65dd82309e66f35e97d125ab1e45bfb49 (patch)
tree6a72b69fc99cbb14dc43617fc6872cb1f5972c8c /docker
parent7c56816e9c25843a08667f02c3f005d9a70a4ed1 (diff)
Use BASH_SOURCE instead of readlink.
- readlink does not work the same way on mac os.
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/vespa-ci.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/vespa-ci.sh b/docker/vespa-ci.sh
index beb5944233b..e8d897465d4 100755
--- a/docker/vespa-ci.sh
+++ b/docker/vespa-ci.sh
@@ -8,7 +8,8 @@ if [ $# -ne 1 ]; then
exit 1
fi
-DIR=$(dirname $(readlink -f $0))
+RELATIVE_DIR=$(dirname "${BASH_SOURCE[0]}")
+DIR=$(cd "${RELATIVE_DIR}" && pwd)
cd $DIR
GIT_COMMIT=$1