Skip to content

Commit

Permalink
fix: bee wrapper use the command name not 'bew' but 'bee'
Browse files Browse the repository at this point in the history
  • Loading branch information
teletha committed Jan 9, 2024
1 parent ea50248 commit 0ea2b16
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/java/bee/task/Wrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public void use() {

@Command("Clean local bee environment.")
public void clean() {
deleteFile("bew");
deleteFile("bew.bat");
deleteFile("bee");
deleteFile("bee.bat");
deleteLocalFars();

ui.info("Remove the local bee environment. From now on, you will use Bee installed at [", Platform.Bee, "].");
Expand Down Expand Up @@ -122,7 +122,7 @@ private void build(String version) {
if not exist !bee! (
echo bee is not found locally, try to download it from network.
curl -#L -o !bee! https://jitpack.io/com/github/teletha/bee/%version%/bee-%version%.jar
curl -#L -o !bee! --create-dirs https://jitpack.io/com/github/teletha/bee/%version%/bee-%version%.jar
)
)
java -javaagent:%bee% -cp %bee% bee.Bee %*
Expand All @@ -144,17 +144,17 @@ private void build(String version) {
fi
if [ ! -f "$bee" ]; then
echo "bee is not found locally, try to download it from network."
curl -#L -o "$bee" {ⅱ}
curl -#L -o "$bee" --create-dirs {ⅱ}
fi
fi
java -javaagent:"$bee" -cp "$bee" bee.Bee "$@"
""", context);

makeFile("bew.bat", bat);
makeFile("bew", sh);
makeFile("bee.bat", bat);
makeFile("bee", sh);

ui.info("From now on, the bee command used in this directory will be fixed to version [", version, "].");
ui.info("To clear this setting, execute the command [bew env:clean].");
ui.info("To clear this setting, execute the command [bee env:clean].");

deleteLocalFars();
}
Expand Down

0 comments on commit 0ea2b16

Please sign in to comment.