From 8bf9bbfd1c7e628b558c84bf9c7c0499b205b9f4 Mon Sep 17 00:00:00 2001 From: Evgenii Terechkov Date: Mon, 11 Nov 2019 20:31:59 +0700 Subject: [PATCH] Update brew.sh: hide printf's stderr in numeric() Avoid #6721 and similar confusing messages during version comparison by hiding printf's stderr (printf woks anyway). --- 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 51c3d763f9..0a4ed98444 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -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)"