Fixing the bootstrap script to identify exit codes correctly.
This commit is contained in:
parent
b2cadca585
commit
35b71c8395
1 changed files with 3 additions and 3 deletions
|
@ -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..."
|
||||
|
|
Loading…
Reference in a new issue