Merge pull request #6722 from evgkrsk/patch-1

Update brew.sh: hide printf's stderr in numeric()
This commit is contained in:
Mike McQuaid 2019-11-11 21:26:57 -08:00 committed by GitHub
commit 2e0c703cb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ git() {
numeric() {
# Condense the exploded argument into a single return value.
# shellcheck disable=SC2086,SC2183
printf "%01d%02d%02d%03d" ${1//[.rc]/ }
printf "%01d%02d%02d%03d" ${1//[.rc]/ } 2>/dev/null
}
HOMEBREW_VERSION="$(git -C "$HOMEBREW_REPOSITORY" describe --tags --dirty --abbrev=7 2>/dev/null)"