Browse Source

update RunCmd

Matthew R. Kasun 3 years ago
parent
commit
9ba3a94f40
1 changed files with 1 additions and 0 deletions
  1. 1 0
      netclient/ncutils/netclientutils_freebsd.go

+ 1 - 0
netclient/ncutils/netclientutils_freebsd.go

@@ -15,6 +15,7 @@ func RunCmdFormatted(command string, printerr bool) (string, error) {
 
 	args := strings.Fields(command)
 	cmd := exec.Command(args[0], args[1:]...)
+	cmd.Start()
 	cmd.Wait()
 	out, err := cmd.CombinedOutput()
 	if err != nil && printerr {