X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=bootstrap.sh;h=369f38aad537a36f2b7ef3b35a37847360ec6c1a;hb=d3b03472ae3107e09e117def65c739aa9aaf00bf;hp=9cad37c2ee204ebd254b81759284944a6c6ece4e;hpb=acdc15c5fda9fbd45371d60fb2770ff126a4d5f0;p=max%2Fsaltfiles.git diff --git a/bootstrap.sh b/bootstrap.sh index 9cad37c..369f38a 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -8,11 +8,9 @@ install_salt() { sudo sh "${bootstrap}" -P } -if ! which $SALT_CMD; then - install_salt -fi +which $SALT_CMD > /dev/null || install_salt -if [[ ! $1 ]]; then +if [ ! $1 ]; then sudo $SALT_CMD \ --local \ --config=./ \