Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Mar 28, 2020
1 parent ba01a20 commit c3459ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ func ExecCommand(command string) error {
var err error
go func() {
err = cmd.Wait()
if err != nil {
fmt.Println("Error:The command is err: ", err.Error())
if err != nil && !strings.Contains(err.Error(), "exit status") {
fmt.Println("wait:", err.Error())
}
close(ch)
}()
Expand Down

0 comments on commit c3459ea

Please sign in to comment.