From c97708f450200a927de1cc107c4d1051dd4638d5 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Mon, 16 May 2022 00:50:38 +0200 Subject: [PATCH] fix setup.sh bin detection --- setup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 4bae36b..353453d 100644 --- a/setup.sh +++ b/setup.sh @@ -4,6 +4,8 @@ if [ "$ISBPL_PATH" = "" ] ; then fi IFS=: read -r BIN OTHERBIN <<< "$PATH" mkdir /usr/lib/isbpl >& /dev/null +touch /usr/lib/isbpl/test && export BIN=/usr/bin && rm /usr/lib/isbpl/test +echo "Installing to $BIN." cp ./*.isbpl /usr/lib/isbpl >& /dev/null cd bootstrap cp ../ISBPL.java . @@ -13,7 +15,7 @@ rm ISBPL.java ISBPL.jar zip -r ISBPL.jar * META-INF rm *.class cd .. -echo "#!${BIN}/java -jar" > ISBPL.jar +echo "#!java -jar" > ISBPL.jar cat bootstrap/ISBPL.jar >> ISBPL.jar chmod a+rx ISBPL.jar cp ISBPL.jar "${BIN}/isbpl"