code: func runCommand(cmd string) error {
  	log.Debug("Running " + cmd)
  	var c *exec.Cmd
  	if runtime.GOOS == "windows" {
  		c = exec.Command("cmd", "/C", cmd)
  	} else {
  		c = exec.Command("/bin/sh", "-c", cmd)
  	}
  
  	output, err := c.CombinedOutput()
  	if err != nil {
  		log.Error(fmt.Sprintf("%q", string(output)))
  		return err
  	}
  	log.Debug(fmt.Sprintf("%q", string(output)))
  	return nil
  }
docs: // runCommand is a shared function used by check and reload
  // to run the given command and log its output.
  // It returns nil if the given cmd returns 0.
  // The command can be run on unix and windows.