Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
fix: common.CmdExec 返回 err 的成功情况
Browse files Browse the repository at this point in the history
  • Loading branch information
neargle committed Mar 26, 2018
1 parent 844bcc0 commit 6bbce48
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions daemon/install/agent_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,10 @@ func Agent(ip string, installPath string, arch string) error {
log.Println("Start service successfully")
return nil
}
// common.CmdExec 返回 err, 也可能执行成功
if strings.Contains(err.Error(), "exit status") {
return nil
}
log.Println("Exec error:", err)
return err
}

0 comments on commit 6bbce48

Please sign in to comment.