From 1e333d6ee30b142be63f589d9a5d32bbc471b6fb Mon Sep 17 00:00:00 2001 From: Arne Juul Date: Wed, 4 Sep 2019 13:30:35 +0000 Subject: update shell bootstrap sections --- vespabase/src/start-tool.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vespabase/src/start-tool.sh') diff --git a/vespabase/src/start-tool.sh b/vespabase/src/start-tool.sh index f3100739cde..b3811939ad7 100755 --- a/vespabase/src/start-tool.sh +++ b/vespabase/src/start-tool.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 -- cgit v1.2.3