Last active
March 19, 2025 21:11
-
-
Save josephmidura/807770766aeb37b9cc3897e26f870210 to your computer and use it in GitHub Desktop.
This is the script I used in my post here: https://josephmidura.wordpress.com/2021/07/03/updating-homebrew-on-macos/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Update homebrew | |
| CYAN=$(tput setaf 6) | |
| RESET=$(tput sgr0) | |
| echo "${CYAN}Updating homebrew and local base of available packages and versions...${RESET}" | |
| brew update | |
| echo "${CYAN}Upgrading outdated homebrew packages...${RESET}" | |
| brew upgrade | |
| echo "${CYAN}Cleaning cache of unfinished downloads...${RESET}" | |
| brew cleanup | |
| echo "${CYAN}Checking for issues...${RESET}" | |
| brew doctor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm glad it worked and it sounds like you're on the right track with calling scripts from directories in your $PATH.