We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6ac9706 + 900d315 commit 40a2bbaCopy full SHA for 40a2bba
setup.sh
@@ -9,6 +9,9 @@ downloadHighPolySuv=true
9
MIN_CMAKE_VERSION=3.10.0
10
function version_less_than_equal_to() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" = "$1"; }
11
12
+# brew gives error if package is already installed
13
+function brew_install() { brew list $1 &>/dev/null || brew install $1; }
14
+
15
# Parse command line arguments
16
while [[ $# -gt 0 ]]
17
do
@@ -63,7 +66,8 @@ if [ "$(uname)" == "Darwin" ]; then # osx
63
66
sudo dseditgroup -o edit -a `whoami` -t user dialout
64
67
fi
65
68
- brew install wget coreutils
69
+ brew_install wget
70
+ brew_install coreutils
71
72
if version_less_than_equal_to $cmake_ver $MIN_CMAKE_VERSION; then
73
brew install cmake # should get cmake 3.8
0 commit comments