aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/apps/vespa-remove-indexes/vespa-remove-index.sh
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/apps/vespa-remove-indexes/vespa-remove-index.sh')
-rwxr-xr-xsearchcore/src/apps/vespa-remove-indexes/vespa-remove-index.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/searchcore/src/apps/vespa-remove-indexes/vespa-remove-index.sh b/searchcore/src/apps/vespa-remove-indexes/vespa-remove-index.sh
index 0ed35588e22..fa36566b01d 100755
--- a/searchcore/src/apps/vespa-remove-indexes/vespa-remove-index.sh
+++ b/searchcore/src/apps/vespa-remove-indexes/vespa-remove-index.sh
@@ -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