summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-07-30 16:38:00 -0700
committerTim Smith <tsmith84@gmail.com>2020-07-30 16:38:00 -0700
commit71e322277c67e651af1afded9d76a3fb9284b60d (patch)
treed4c151ffeffbbecf9ca90c0cfe22b34c1077a6aa
parent72b0d63e426ab98092b65d0fc3d7a0f04b623595 (diff)
downloadchef-71e322277c67e651af1afded9d76a3fb9284b60d.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-xomnibus/package-scripts/angrychef/postinst2
-rwxr-xr-xomnibus/package-scripts/angrychef/postrm2
-rwxr-xr-xomnibus/package-scripts/chef/postinst2
-rwxr-xr-xomnibus/package-scripts/chef/postrm2
4 files changed, 4 insertions, 4 deletions
diff --git a/omnibus/package-scripts/angrychef/postinst b/omnibus/package-scripts/angrychef/postinst
index 2dccceff6c..c8f75105ce 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
}
if is_darwin; then
diff --git a/omnibus/package-scripts/angrychef/postrm b/omnibus/package-scripts/angrychef/postrm
index c8e057cb30..43b5f22c98 100755
--- a/omnibus/package-scripts/angrychef/postrm
+++ b/omnibus/package-scripts/angrychef/postrm
@@ -8,7 +8,7 @@
# - if you are under 40, get peer review from your elders.
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 d4e12a239e..1500feac0c 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
}
if is_darwin; then
diff --git a/omnibus/package-scripts/chef/postrm b/omnibus/package-scripts/chef/postrm
index c8e057cb30..43b5f22c98 100755
--- a/omnibus/package-scripts/chef/postrm
+++ b/omnibus/package-scripts/chef/postrm
@@ -8,7 +8,7 @@
# - if you are under 40, get peer review from your elders.
is_darwin() {
- uname -v | grep "^Darwin" 2>&1 >/dev/null
+ uname -a | grep "^Darwin" 2>&1 >/dev/null
}
is_suse() {