Merge pull request #5642 from hmnd/patch-1

Fix printf error on bash launch
This commit is contained in:
Mike McQuaid 2019-01-29 09:54:47 +00:00 committed by GitHub
commit d607fdfcfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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