Skip to content

Commit

Permalink
update: set proxy on install
Browse files Browse the repository at this point in the history
  • Loading branch information
zhifengle committed Apr 21, 2023
1 parent b97d184 commit 279e2af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ func commands() []cli.Command {
ShortName: "i",
Usage: "Install available remote jdk",
Action: func(c *cli.Context) error {
if config.Proxy != "" {
web.SetProxy(config.Proxy)
}
v := c.Args().Get(0)
if v == "" {
return errors.New("invalid version., Type \"jvms rls\" to see what is available for install")
Expand Down

0 comments on commit 279e2af

Please sign in to comment.