summaryrefslogtreecommitdiffstats
path: root/application-preprocessor
diff options
context:
space:
mode:
Diffstat (limited to 'application-preprocessor')
-rw-r--r--application-preprocessor/src/main/sh/vespa-preprocess-application4
1 files changed, 4 insertions, 0 deletions
diff --git a/application-preprocessor/src/main/sh/vespa-preprocess-application b/application-preprocessor/src/main/sh/vespa-preprocess-application
index 40742461d81..42e08411fe9 100644
--- a/application-preprocessor/src/main/sh/vespa-preprocess-application
+++ b/application-preprocessor/src/main/sh/vespa-preprocess-application
@@ -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