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