summaryrefslogtreecommitdiffstats
path: root/security-tools/src/main/sh/vespa-curl-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'security-tools/src/main/sh/vespa-curl-wrapper')
-rwxr-xr-xsecurity-tools/src/main/sh/vespa-curl-wrapper4
1 files changed, 4 insertions, 0 deletions
diff --git a/security-tools/src/main/sh/vespa-curl-wrapper b/security-tools/src/main/sh/vespa-curl-wrapper
index 4c616b0fc4e..e286e121f64 100755
--- a/security-tools/src/main/sh/vespa-curl-wrapper
+++ b/security-tools/src/main/sh/vespa-curl-wrapper
@@ -11,6 +11,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