forked from ungleich-public/cdist
[type/__sysctl] Add Mac OS X support
This commit is contained in:
parent
566feba5b1
commit
45ff67c0f5
2 changed files with 8 additions and 2 deletions
|
@ -32,6 +32,12 @@ case "$os" in
|
|||
redhat|centos|ubuntu|debian|devuan|archlinux|coreos|netbsd)
|
||||
flag='-w'
|
||||
;;
|
||||
macosx)
|
||||
# NOTE: Older versions of Mac OS X require the -w option.
|
||||
# Even though the flag is not mentioned in new man pages anymore,
|
||||
# it still works.
|
||||
flag='-w'
|
||||
;;
|
||||
freebsd|openbsd)
|
||||
flag=''
|
||||
;;
|
||||
|
|
|
@ -28,7 +28,7 @@ case "$os" in
|
|||
:
|
||||
;;
|
||||
# BSD
|
||||
freebsd|netbsd|openbsd)
|
||||
freebsd|macosx|netbsd|openbsd)
|
||||
:
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue