summaryrefslogtreecommitdiffstats
path: root/searchlib/src/main/sh/vespa-gbdt-converter
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/main/sh/vespa-gbdt-converter')
-rwxr-xr-xsearchlib/src/main/sh/vespa-gbdt-converter4
1 files changed, 4 insertions, 0 deletions
diff --git a/searchlib/src/main/sh/vespa-gbdt-converter b/searchlib/src/main/sh/vespa-gbdt-converter
index 19a53408ab5..defa942922e 100755
--- a/searchlib/src/main/sh/vespa-gbdt-converter
+++ b/searchlib/src/main/sh/vespa-gbdt-converter
@@ -8,6 +8,10 @@ findpath () {
myname=${0}
mypath=${myname%/*}
myname=${myname##*/}
+ empty_if_start_slash=${mypath%%/*}
+ if [ "${empty_if_start_slash}" ]; then
+ mypath=$(pwd)/${mypath}
+ fi
if [ "$mypath" ] && [ -d "$mypath" ]; then
return
fi