Skip to content

Commit

Permalink
Minor OSes fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krystian-panek-vmltech committed Oct 3, 2023
1 parent 1f56f8b commit 7a83b0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/java/java.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,11 @@ func (o *Opts) Env() ([]string, error) {
return nil, err
}
javaPath := pathx.Canonical(homeDir + "/bin")
envOthers := osx.EnvVarsWithout("PATH", "JAVA_HOME")
envOthers := osx.EnvVarsWithout("PATH", "JAVA_HOME", "TERM")
envFinal := append([]string{
"PATH=" + javaPath + osx.PathVarSep() + os.Getenv("PATH"),
"JAVA_HOME=" + homeDir,
"TERM=xterm", // unpacking AEM jar requires this on some OSes
}, envOthers...)
return envFinal, nil
}
Expand Down

0 comments on commit 7a83b0d

Please sign in to comment.