summaryrefslogtreecommitdiffstats
path: root/vespaclient/src/sh/vespa-get-node-state
diff options
context:
space:
mode:
authorArne Juul <arnej@yahoo-inc.com>2019-09-04 13:30:35 +0000
committerArne Juul <arnej@yahoo-inc.com>2019-09-04 13:30:35 +0000
commit1e333d6ee30b142be63f589d9a5d32bbc471b6fb (patch)
tree6832b4bb5c50dad210614fb1663a9d6a29bf8219 /vespaclient/src/sh/vespa-get-node-state
parentd71937c4f9f3c7b69d6d39cbac1ccdce23df3abe (diff)
update shell bootstrap sections
Diffstat (limited to 'vespaclient/src/sh/vespa-get-node-state')
-rwxr-xr-xvespaclient/src/sh/vespa-get-node-state4
1 files changed, 4 insertions, 0 deletions
diff --git a/vespaclient/src/sh/vespa-get-node-state b/vespaclient/src/sh/vespa-get-node-state
index d6d5a6905cf..7d0d1e89289 100755
--- a/vespaclient/src/sh/vespa-get-node-state
+++ b/vespaclient/src/sh/vespa-get-node-state
@@ -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