diff options
Diffstat (limited to 'util/macos_install.sh')
-rwxr-xr-x | util/macos_install.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/macos_install.sh b/util/macos_install.sh index 915ff3143..f7e304424 100755 --- a/util/macos_install.sh +++ b/util/macos_install.sh | |||
@@ -1,5 +1,7 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | util_dir=$(dirname "$0") | ||
4 | |||
3 | if ! brew --version 2>&1 > /dev/null; then | 5 | if ! brew --version 2>&1 > /dev/null; then |
4 | echo "Error! Homebrew not installed or broken!" | 6 | echo "Error! Homebrew not installed or broken!" |
5 | echo -n "Would you like to install homebrew now? [y/n] " | 7 | echo -n "Would you like to install homebrew now? [y/n] " |
@@ -24,3 +26,4 @@ brew tap PX4/homebrew-px4 | |||
24 | brew update | 26 | brew update |
25 | brew install avr-gcc@8 gcc-arm-none-eabi dfu-programmer avrdude dfu-util python3 | 27 | brew install avr-gcc@8 gcc-arm-none-eabi dfu-programmer avrdude dfu-util python3 |
26 | brew link --force avr-gcc@8 | 28 | brew link --force avr-gcc@8 |
29 | pip3 install -r ${util_dir}/../requirements.txt | ||