Skip to content

Commit 05ca6b1

Browse files
authored
Fix computer launch for windows (#635)
* Fix computer launch for windows * Update create temporary directory * Remove some code
1 parent 8f2c9f0 commit 05ca6b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/cmd/computer_launch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ jcli agent launch agent-name --type jnlp`,
213213
}
214214

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

0 commit comments

Comments
 (0)