summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCastor Regex <[email protected]>2025-08-31 11:32:11 -0500
committerJeff Carr <[email protected]>2025-08-31 11:32:11 -0500
commitdf3dbcbc7e5bdcf526c109dbdb55a2553d39bb3a (patch)
tree7f2116898af73607f888ef6f32caf0007de6351b
parent3dd6affd6fde2f0af23b35e7014ba59b6233320a (diff)
fix(hostname): correct usage of exec.Command for darwin build
-rw-r--r--get_darwin.go2
1 files changed, 1 insertions, 1 deletions
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 {