Skip to content

Commit

Permalink
ubuntu向けに修正
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb-sy committed May 25, 2024
1 parent 836ef1c commit 5f3f0cd
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions brew_install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,24 @@ casks=(
)

# Install Homebrew if not installed
which brew >/dev/null 2>&1 || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
if ! command -v brew >/dev/null 2>&1; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi

# Run brew doctor
which brew >/dev/null 2>&1 && brew doctor
if command -v brew >/dev/null 2>&1; then
brew doctor
fi

# Run brew update
which brew >/dev/null 2>&1 && brew update
if command -v brew >/dev/null 2>&1; then
brew update
fi

# Run brew upgrade
brew upgrade
if command -v brew >/dev/null 2>&1; then
brew upgrade
fi

brew update
brew tap homebrew/cask-fonts
Expand Down Expand Up @@ -63,7 +71,8 @@ darwin*)
sudo ln -snfv "$(brew --prefix gcc)/g++-${GCC_VER}" /usr/local/bin/g++
;;
linux*)
brew install docker
sudo apt update
sudo apt install -y docker.io
;;
esac

Expand Down

0 comments on commit 5f3f0cd

Please sign in to comment.