-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
#!/bin/bash | ||
bee=bee-0.45.0.far | ||
bee=bee-0.45.1.far | ||
if [ ! -f "$bee" ]; then | ||
if [ -n "$JAVA_HOME" ]; then | ||
bee="$JAVA_HOME/lib/bee/bee-0.45.0.jar" | ||
bee="$JAVA_HOME/lib/bee/bee-0.45.1.jar" | ||
else | ||
# Try to infer JAVA_HOME from PATH | ||
java_path=$(command -v java) | ||
if [ -n "$java_path" ]; then | ||
javaDir=$(dirname "$java_path") | ||
bee="$javaDir/../lib/bee/bee-0.45.0.jar" | ||
bee="$javaDir/../lib/bee/bee-0.45.1.jar" | ||
fi | ||
fi | ||
if [ ! -f "$bee" ]; then | ||
echo "bee is not found locally, try to download it from network." | ||
curl -#L -o "$bee" --create-dirs https://jitpack.io/com/github/teletha/bee/0.45.0/bee-0.45.0.jar | ||
curl -#L -o "$bee" --create-dirs https://jitpack.io/com/github/teletha/bee/0.45.1/bee-0.45.1.jar | ||
fi | ||
fi | ||
java -javaagent:"$bee" -cp "$bee" bee.Bee "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters