mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-13 16:09:09 +08:00
setup: only install homebrew if not already there
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user