summaryrefslogtreecommitdiffstats
path: root/searchlib/src/main/sh/vespa-treenet-converter
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/main/sh/vespa-treenet-converter')
-rwxr-xr-xsearchlib/src/main/sh/vespa-treenet-converter4
1 files changed, 4 insertions, 0 deletions
diff --git a/searchlib/src/main/sh/vespa-treenet-converter b/searchlib/src/main/sh/vespa-treenet-converter
index 03fabf8f5f4..eda5189e28f 100755
--- a/searchlib/src/main/sh/vespa-treenet-converter
+++ b/searchlib/src/main/sh/vespa-treenet-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