Skip to content

Commit

Permalink
Fix computer launch for windows (#635)
Browse files Browse the repository at this point in the history
* Fix computer launch for windows

* Update create temporary directory

* Remove some code
  • Loading branch information
yJunS authored Sep 22, 2021
1 parent 8f2c9f0 commit 05ca6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/cmd/computer_launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ jcli agent launch agent-name --type jnlp`,
}

var f *os.File
if f, err = ioutil.TempFile("/tmp", "agent.jar"); err == nil {
if f, err = ioutil.TempFile("", "agent.jar"); err == nil {
computerLaunchOption.Output = f.Name()
agentURL := fmt.Sprintf("%s/jnlpJars/agent.jar", computerLaunchOption.ComputerClient.URL)
logger.Debug("start to download agent.jar", zap.String("url", agentURL))
Expand Down

0 comments on commit 05ca6b1

Please sign in to comment.