summaryrefslogtreecommitdiffstats
path: root/configserver/src/main/sh/stop-configserver
diff options
context:
space:
mode:
Diffstat (limited to 'configserver/src/main/sh/stop-configserver')
-rwxr-xr-xconfigserver/src/main/sh/stop-configserver4
1 files changed, 4 insertions, 0 deletions
diff --git a/configserver/src/main/sh/stop-configserver b/configserver/src/main/sh/stop-configserver
index 099429eb556..007ff7cdd62 100755
--- a/configserver/src/main/sh/stop-configserver
+++ b/configserver/src/main/sh/stop-configserver
@@ -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