diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 7b2d6a16d5..6ef9369f3e 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -5,6 +5,11 @@ case "$HOMEBREW_SYSTEM" in Linux) HOMEBREW_LINUX="1" ;; esac +# Colorize output on GitHub Actions. +if [[ -n "$GITHUB_ACTIONS" ]]; then + export HOMEBREW_COLOR="1" +fi + # Force UTF-8 to avoid encoding issues for users with broken locale settings. if [[ -n "$HOMEBREW_MACOS" ]] then