fix(hostname): correct usage of exec.Command for darwin build
This commit is contained in:
parent
3dd6affd6f
commit
df3dbcbc7e
|
@ -17,7 +17,7 @@ func osGetHostname() (string, error) {
|
|||
|
||||
// getDomainName executes the 'domainname' command and returns its output.
|
||||
func scutil(args []string) (string, error) {
|
||||
cmd := exec.Command("scutil", args)
|
||||
cmd := exec.Command("scutil", args...)
|
||||
var out bytes.Buffer
|
||||
cmd.Stdout = &out
|
||||
if err := cmd.Run(); err != nil {
|
||||
|
|
Loading…
Reference in New Issue