Skip to content

Commit

Permalink
brew.sh: use 'command -v' instead of 'which'
Browse files Browse the repository at this point in the history
Co-authored-by: Shaun Jackman <sjackman@gmail.com>
  • Loading branch information
maxim-belkin and sjackman authored Aug 13, 2020
1 parent ecbe221 commit bab43d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]]
Expand Down

0 comments on commit bab43d4

Please sign in to comment.