diff options
Diffstat (limited to 'get_darwin.go')
| -rw-r--r-- | get_darwin.go | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
