Skip to content

Commit

Permalink
fix: remove redundant command in version check
Browse files Browse the repository at this point in the history
  • Loading branch information
LangLangBart authored Aug 1, 2024
1 parent 04ba6d2 commit 1afe617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gh-notify
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ check_version() {
local user_version user_version_part index
declare -a ver_parts threshold_parts
user_version=$(command $tool --version 2>&1 |
command command grep --color=never --extended-regexp --only-matching --regexp='[0-9]+(\.[0-9]+)*' |
command grep --color=never --extended-regexp --only-matching --regexp='[0-9]+(\.[0-9]+)*' |
command sed q)

IFS='.' read -ra ver_parts <<<"$user_version"
Expand Down

0 comments on commit 1afe617

Please sign in to comment.