From bab43d4cc8b828736a91565e5787dbbc5064ea7c Mon Sep 17 00:00:00 2001 From: Maxim Belkin Date: Thu, 13 Aug 2020 06:59:39 -0500 Subject: [PATCH] brew.sh: use 'command -v' instead of 'which' Co-authored-by: Shaun Jackman --- 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 a04c3e2ba6..9af5397792 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -6,7 +6,7 @@ case "$HOMEBREW_SYSTEM" in esac # Force UTF-8 to avoid encoding issues for users with broken locale settings. -if ! which locale &>/dev/null +if ! command -v locale >/dev/null then export LC_ALL=C elif [[ "$(locale charmap 2>/dev/null)" != "UTF-8" ]]