summaryrefslogtreecommitdiffstats
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.sh6
1 files changed, 4 insertions, 2 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 a326616fe30..1a169428f24 100755
--- a/searchcore/src/apps/vespa-remove-indexes/vespa-remove-index.sh
+++ b/searchcore/src/apps/vespa-remove-indexes/vespa-remove-index.sh
@@ -72,10 +72,12 @@ findhost () {
findroot
findhost
+ROOT=${VESPA_HOME%/}
+export ROOT
+
# END environment bootstrap section
-ROOT=${VESPA_HOME%/}
-cd $ROOT || { echo "Cannot cd to $ROOT" 1>&2; exit 1; }
+cd ${VESPA_HOME} || { echo "Cannot cd to ${VESPA_HOME}" 1>&2; exit 1; }
usage() {
(