diff --git a/cluster/vagrant/provision-master.sh b/cluster/vagrant/provision-master.sh index b89c07c0f0a..663fde30771 100755 --- a/cluster/vagrant/provision-master.sh +++ b/cluster/vagrant/provision-master.sh @@ -61,7 +61,7 @@ MASTER_HTPASSWD=$(cat ${KUBE_TEMP}/htpasswd) echo $MASTER_HTPASSWD > /srv/salt/nginx/htpasswd # we will run provision to update code each time we test, so we do not want to do salt install each time -if [ ! $(which salt-master) ]; then +if ! which salt-master >/dev/null 2>&1; then # Configure the salt-api cat </etc/salt/master.d/salt-api.conf diff --git a/cluster/vagrant/provision-minion.sh b/cluster/vagrant/provision-minion.sh index 26f63215f98..f6f9bc8c60e 100755 --- a/cluster/vagrant/provision-minion.sh +++ b/cluster/vagrant/provision-minion.sh @@ -41,7 +41,7 @@ grains: EOF # we will run provision to update code each time we test, so we do not want to do salt install each time -if [ ! $(which salt-minion) ]; then +if ! which salt-minion >/dev/null 2>&1; then # Install Salt # # We specify -X to avoid a race condition that can cause minion failure to