Skip to content

Commit 7c49afa

Browse files
julianoesdagar
authored andcommitted
setup: only install homebrew if not already there
1 parent 7667298 commit 7c49afa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Tools/setup/macos.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ do
1818
fi
1919
done
2020

21-
# install Homebrew
22-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
21+
if ! command -v brew &> /dev/null
22+
then
23+
# install Homebrew if not installed yet
24+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
25+
fi
2326

2427
# Install px4-dev formula
2528
if [[ $REINSTALL_FORMULAS == "--reinstall" ]]; then

0 commit comments

Comments
 (0)