diff options
author | Anthony Fok <foka@debian.org> | 2015-12-02 11:56:36 -0700 |
---|---|---|
committer | Anthony Fok <foka@debian.org> | 2015-12-02 11:56:36 -0700 |
commit | d48781badf4bf26bffe116365daf653b5eaa5935 (patch) | |
tree | 69d9161a8647fbbb6d8de8f1fa3a3206c15babb6 /commands/limit_darwin.go | |
parent | c5287e78170474abcf8bbb3aa0fd837de2bafaaa (diff) |
One more error fix in the server command
And some other small code clean-up.
See #1502
Diffstat (limited to 'commands/limit_darwin.go')
-rw-r--r-- | commands/limit_darwin.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/limit_darwin.go b/commands/limit_darwin.go index ab8dba0f7..43371b898 100644 --- a/commands/limit_darwin.go +++ b/commands/limit_darwin.go @@ -22,14 +22,14 @@ import ( ) func init() { - check.AddCommand(limit) + checkCmd.AddCommand(limit) } var limit = &cobra.Command{ Use: "ulimit", Short: "Check system ulimit settings", Long: `Hugo will inspect the current ulimit settings on the system. - This is primarily to ensure that Hugo can watch enough files on some OSs`, +This is primarily to ensure that Hugo can watch enough files on some OSs`, RunE: func(cmd *cobra.Command, args []string) error { var rLimit syscall.Rlimit err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rLimit) |