From d9e8afe5a1d8e9477d78e7b6a9358a815c9d82d1 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Mon, 24 Aug 2020 18:52:35 +0200 Subject: [PATCH 1/2] brew.sh: colorize output on GitHub Actions --- Library/Homebrew/brew.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 7b2d6a16d5..b086f48276 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 From 1863b85dbe0a020c3567f7fbb13d3ca9d1a86267 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Tue, 25 Aug 2020 07:16:53 +0200 Subject: [PATCH 2/2] brew.sh: fix indentation Co-authored-by: Markus Reiter --- Library/Homebrew/brew.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index b086f48276..6ef9369f3e 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -7,7 +7,7 @@ esac # Colorize output on GitHub Actions. if [[ -n "$GITHUB_ACTIONS" ]]; then - export HOMEBREW_COLOR="1" + export HOMEBREW_COLOR="1" fi # Force UTF-8 to avoid encoding issues for users with broken locale settings.