From df3dbcbc7e5bdcf526c109dbdb55a2553d39bb3a Mon Sep 17 00:00:00 2001 From: Castor Regex Date: Sun, 31 Aug 2025 11:32:11 -0500 Subject: [PATCH] fix(hostname): correct usage of exec.Command for darwin build --- get_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get_darwin.go b/get_darwin.go index f2183a4..11157c5 100644 --- a/get_darwin.go +++ b/get_darwin.go @@ -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 {