diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-07-30 16:38:00 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-08-17 21:39:36 -0700 |
commit | c8c417feb28b56d126f793fd34b32d7546f0a0af (patch) | |
tree | 50b10af7d37de6272d0a5239e879799fb5116a98 | |
parent | 072ede7e1a8ae249d374be6bf66a3c2a24d3397f (diff) | |
download | chef-c8c417feb28b56d126f793fd34b32d7546f0a0af.tar.gz |
Make sure darwin is always detected
Make sure we always detect darwin even if the output changes.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rwxr-xr-x | omnibus/package-scripts/angrychef/postinst | 2 | ||||
-rwxr-xr-x | omnibus/package-scripts/angrychef/postrm | 2 | ||||
-rwxr-xr-x | omnibus/package-scripts/chef/postinst | 2 | ||||
-rwxr-xr-x | omnibus/package-scripts/chef/postrm | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/omnibus/package-scripts/angrychef/postinst b/omnibus/package-scripts/angrychef/postinst index 5cf14075b9..9f01f7a848 100755 --- a/omnibus/package-scripts/angrychef/postinst +++ b/omnibus/package-scripts/angrychef/postinst @@ -23,7 +23,7 @@ error_exit() is_darwin() { - uname -v | grep "^Darwin" 2>&1 >/dev/null + uname -a | grep "^Darwin" 2>&1 >/dev/null } is_smartos() diff --git a/omnibus/package-scripts/angrychef/postrm b/omnibus/package-scripts/angrychef/postrm index 0963b1d901..b8d7c31563 100755 --- a/omnibus/package-scripts/angrychef/postrm +++ b/omnibus/package-scripts/angrychef/postrm @@ -12,7 +12,7 @@ is_smartos() { } is_darwin() { - uname -v | grep "^Darwin" 2>&1 >/dev/null + uname -a | grep "^Darwin" 2>&1 >/dev/null } is_suse() { diff --git a/omnibus/package-scripts/chef/postinst b/omnibus/package-scripts/chef/postinst index c1c5272902..43fdb969a9 100755 --- a/omnibus/package-scripts/chef/postinst +++ b/omnibus/package-scripts/chef/postinst @@ -23,7 +23,7 @@ error_exit() is_darwin() { - uname -v | grep "^Darwin" 2>&1 >/dev/null + uname -a | grep "^Darwin" 2>&1 >/dev/null } is_smartos() diff --git a/omnibus/package-scripts/chef/postrm b/omnibus/package-scripts/chef/postrm index 0963b1d901..b8d7c31563 100755 --- a/omnibus/package-scripts/chef/postrm +++ b/omnibus/package-scripts/chef/postrm @@ -12,7 +12,7 @@ is_smartos() { } is_darwin() { - uname -v | grep "^Darwin" 2>&1 >/dev/null + uname -a | grep "^Darwin" 2>&1 >/dev/null } is_suse() { |