mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-28 01:52:58 +08:00
update RunCmd
This commit is contained in:
parent
747baf1bba
commit
9ba3a94f40
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue