Skip to content

Commit

Permalink
Update homebrew installation script.
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoVink committed Aug 5, 2022
1 parent 6aa6c11 commit 9ae69c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pre-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# Check if homebrew is installed
echo -n "Checking for homebrew... "
if [[ "$OSTYPE" == "darwin"* ]]; then
if [ -x "$(command -v brew)" ]; then
if ! [ -x "$(command -v brew)" ]; then
echo -n "installing... "
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" > /dev/null 2>&1
NONINTERACTIVE=1 sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" > /dev/null
echo "installed"
else
echo "already installed"
Expand Down

0 comments on commit 9ae69c8

Please sign in to comment.