Skip to content

Commit

Permalink
Merge pull request #18147 from Homebrew/shellcheck-helpers.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid authored Aug 26, 2024
2 parents 0c3104a + ca06399 commit d58302e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Library/Homebrew/utils/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ which() {
}

numeric() {
# Condense the exploded argument into a single return value.
# shellcheck disable=SC2086,SC2183
printf "%01d%02d%02d%03d" ${1//[.rc]/ } 2>/dev/null
local -a version_array
IFS=".rc" read -r -a version_array <<<"${1}"
printf "%01d%02d%02d%03d" "${version_array[@]}" 2>/dev/null
}

0 comments on commit d58302e

Please sign in to comment.