brew.sh: colorize output on GitHub Actions

This commit is contained in:
Dawid Dziurla 2020-08-24 18:52:35 +02:00
parent 31f3afa36d
commit d9e8afe5a1
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -5,6 +5,11 @@ case "$HOMEBREW_SYSTEM" in
Linux) HOMEBREW_LINUX="1" ;; Linux) HOMEBREW_LINUX="1" ;;
esac 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. # Force UTF-8 to avoid encoding issues for users with broken locale settings.
if [[ -n "$HOMEBREW_MACOS" ]] if [[ -n "$HOMEBREW_MACOS" ]]
then then