setup: only install homebrew if not already there

This commit is contained in:
Julian Oes 2020-07-15 11:42:05 +02:00 committed by Daniel Agar
parent 7667298c86
commit 7c49afa716

View File

@ -18,8 +18,11 @@ do
fi
done
# install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
if ! command -v brew &> /dev/null
then
# install Homebrew if not installed yet
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
# Install px4-dev formula
if [[ $REINSTALL_FORMULAS == "--reinstall" ]]; then