From 35b71c839525a3e4afa80f7498c0382c0b685d99 Mon Sep 17 00:00:00 2001 From: Elijah Lazkani Date: Sat, 14 Jan 2017 12:34:18 -0500 Subject: [PATCH] Fixing the bootstrap script to identify exit codes correctly. --- bootstrap.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index f67a990..b9ea010 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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..."