Skip to content

Commit

Permalink
#391 support spaces in JAVA_HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
angryziber committed Feb 11, 2023
1 parent 9d3d11f commit bdb34d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/deb-bundle/usr/bin/ipscan
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
java=$JAVA_HOME/bin/java
[ ! -e $java ] && java=java
$java --add-opens java.base/java.net=ALL-UNNAMED -jar /usr/lib*/ipscan/ipscan*.jar "$@"
[ ! -e "$java" ] && java=java
"$java" --add-opens java.base/java.net=ALL-UNNAMED -jar /usr/lib*/ipscan/ipscan*.jar "$@"
[ $? != 0 ] && notify-send "You need Java/OpenJDK 11+ to run ipscan"

0 comments on commit bdb34d6

Please sign in to comment.