Fixing the bootstrap script to identify exit codes correctly.

This commit is contained in:
Elijah Lazkani 2017-01-14 12:34:18 -05:00
parent b2cadca585
commit 35b71c8395

View file

@ -42,7 +42,7 @@ function _mac_os_x () {
echo "Operating System identified as Mac OS X"
# Check for Homebrew
command brew > /dev/null 2>&1
command brew help > /dev/null 2>&1
if [ $? -ne 0 ];
then
echo "Homebrew not installed, installing..."
@ -50,7 +50,7 @@ function _mac_os_x () {
fi
# Check SaltStack
command salt-call > /dev/null 2>&1
command salt-call -h > /dev/null 2>&1
if [ $? -ne 0 ];
then
echo "SaltStack not installed, installing..."
@ -64,7 +64,7 @@ function _linux () {
echo "Operating System identified as Linux"
# Check Saltstack
command salt-call > /dev/null 2>&1
command salt-call -h > /dev/null 2>&1
if [ $? -ne 0 ];
then
echo "SaltStack not installed, installing..."