Ensure Darwin is always detected in the install scripts

This is more reliable if the output changes

Signed-off-by: Tim Smith <tsmith@chef.io>
This commit is contained in:
Tim Smith 2020-07-30 16:57:18 -07:00
parent 024a838a07
commit 75b61a08c2
2 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,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
@ -41,6 +41,6 @@ done
# be manually fixed.
chown -Rh 0:0 $INSTALLER_DIR
echo "Thank you for installing InSpec!"
echo "Thank you for installing Chef InSpec!"
exit 0

View file

@ -6,7 +6,7 @@
is_darwin()
{
uname -v | grep "^Darwin" 2>&1 >/dev/null
uname -a | grep "^Darwin" 2>&1 >/dev/null
}
if is_darwin; then
@ -32,6 +32,6 @@ elif [ "x$1" = "x0" ]; then
cleanup_symlinks
fi
echo "InSpec has been uninstalled!"
echo "Chef InSpec has been uninstalled!"
exit 0