From 547440f398199b6da5157767a1379e518b4f5267 Mon Sep 17 00:00:00 2001 From: Robert Tisma <942951+rtisma@users.noreply.github.com> Date: Wed, 11 Dec 2019 12:23:57 -0500 Subject: [PATCH] fixed sing executable so that it can now run inside the ./bin directory --- song-client/src/main/bin/sing | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/song-client/src/main/bin/sing b/song-client/src/main/bin/sing index aa8256d29..968926fc6 100755 --- a/song-client/src/main/bin/sing +++ b/song-client/src/main/bin/sing @@ -43,8 +43,12 @@ if [[ "$_java" ]]; then fi here=$(dirname $0) -sing_home=${here%/bin} -# -Dspring.config.location="$sing_home/conf/" \ +if [ "$here" == "." ]; then + # This is the case, when the user runs this script from the ./bin directory + sing_home=../ +else + sing_home=${here%/bin} +fi java --illegal-access=deny \ -Dlog.name=song \