Merge pull request #6722 from evgkrsk/patch-1
Update brew.sh: hide printf's stderr in numeric()
This commit is contained in:
commit
2e0c703cb6
@ -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)"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user