From 6a205dfa4e3f217e3317509911ddc812a8ef49f6 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 31 Aug 2025 12:17:05 -0500 Subject: wasn't compiling on the mac --- get_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'get_darwin.go') diff --git a/get_darwin.go b/get_darwin.go index 11157c5..d98ce8a 100644 --- a/get_darwin.go +++ b/get_darwin.go @@ -12,7 +12,7 @@ import ( // scutil --set HostName my-mac.example.com func osGetHostname() (string, error) { - return scutil([]string{"-get", "HostName"}) + return scutil([]string{"--get", "HostName"}) } // getDomainName executes the 'domainname' command and returns its output. -- cgit v1.2.3