Merge pull request #8474 from dawidd6/actions-color

brew.sh: colorize output on GitHub Actions
This commit is contained in:
Dawid Dziurla 2020-08-25 13:34:58 +02:00 committed by GitHub
commit d3e22f401b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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