update for other architectures

This commit is contained in:
Matthew R. Kasun
2022-03-21 07:30:56 -04:00
committed by 0xdcarns
parent 11b1098390
commit fa78fe208f
3 changed files with 14 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
package ncutils
import (
"log"
"github.com/gravitl/netmaker/logger"
"os/exec"
"strings"
)
@@ -13,8 +13,8 @@ func RunCmd(command string, printerr bool) (string, error) {
cmd.Wait()
out, err := cmd.CombinedOutput()
if err != nil && printerr {
log.Println("error running command:", command)
log.Println(strings.TrimSuffix(string(out), "\n"))
logger.Log(0, "error running command:", command)
logger.Log(0, strings.TrimSuffix(string(out), "\n"))
}
return string(out), err
}