summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorArne Juul <arnej@yahooinc.com>2022-10-24 10:02:58 +0000
committerArne Juul <arnej@yahooinc.com>2022-10-24 10:02:58 +0000
commit1417a48bd4aecfb5e182d6c7b81960e3d7232309 (patch)
tree256cff43ab30ea2c5efbe31c9d1ad7eb316eefea /searchcore
parentfa29e75a71b49fc3925349457bb43de03b6d60d8 (diff)
* apply new common bootstrap
* remove now-duplicated code * prefer using ${VESPA_HOME} environment variable
Diffstat (limited to 'searchcore')
-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() {
(