fix(hostname): correct usage of exec.Command for darwin build

This commit is contained in:
Castor Regex 2025-08-31 11:32:11 -05:00 committed by Jeff Carr
parent 3dd6affd6f
commit df3dbcbc7e
1 changed files with 1 additions and 1 deletions

View File

@ -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 {