Skip to content

Commit

Permalink
fix: change brew doctor order backward
Browse files Browse the repository at this point in the history
  • Loading branch information
tnka122 committed May 28, 2023
1 parent 517ae3a commit e9928bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brew/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ set -eux
dotfiles_dir=$(cd "$(dirname "$0")" && cd .. || exit 0; pwd)

if builtin command -v brew &> /dev/null; then
echo "[info] run brew doctor"
brew doctor
echo "[info] run brew update"
brew update --verbose
echo "[info] run brew upgrade"
Expand All @@ -15,6 +13,8 @@ if builtin command -v brew &> /dev/null; then
brew bundle --file "$dotfiles_dir"/brew/Brewfile --verbose
echo "[info] run brew upgrade"
brew cleanup --verbose
echo "[info] run brew doctor"
brew doctor
else
echo "[error] Brew not found!" 1>&2
exit 1
Expand Down

0 comments on commit e9928bb

Please sign in to comment.