diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 9af5397792..f985c3b7aa 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -9,7 +9,7 @@ esac if ! command -v locale >/dev/null then export LC_ALL=C -elif [[ "$(locale charmap 2>/dev/null)" != "UTF-8" ]] +elif [[ "$(locale charmap)" != "UTF-8" ]] then if [[ -n "$HOMEBREW_MACOS" ]] then