Skip to content

Commit

Permalink
Clean macos install script (qmk#7186)
Browse files Browse the repository at this point in the history
  • Loading branch information
yadunut authored and zvecr committed Oct 28, 2019
1 parent 6d7c6d4 commit 917ab71
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions util/macos_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

util_dir=$(dirname "$0")

if ! brew --version 2>&1 > /dev/null; then
if ! brew --version >/dev/null 2>&1; then
echo "Error! Homebrew not installed or broken!"
echo -n "Would you like to install homebrew now? [y/n] "
while read ANSWER; do
while read -r ANSWER; do
case $ANSWER in
y|Y)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
break
y | Y)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
break
;;
n|N)
exit 1
n | N)
exit 1
;;
*)
echo -n "Would you like to install homebrew now? [y/n] "
*)
echo -n "Would you like to install homebrew now? [y/n] "
;;
esac
done
Expand All @@ -26,4 +26,4 @@ brew tap PX4/homebrew-px4
brew update
brew install avr-gcc@8 gcc-arm-none-eabi dfu-programmer avrdude clang-format dfu-util python3
brew link --force avr-gcc@8
pip3 install -r ${util_dir}/../requirements.txt
pip3 install -r "${util_dir}/../requirements.txt"

0 comments on commit 917ab71

Please sign in to comment.