Skip to content

Commit

Permalink
fix: prevent grep from coloring output in check_version function
Browse files Browse the repository at this point in the history
  • Loading branch information
LangLangBart committed Jan 10, 2024
1 parent 3f1e94d commit 7e79210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gh-find-code
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ check_version() {
local user_version
declare -a ver_parts threshold_parts
user_version=$(command $tool --version 2>&1 |
command grep --extended-regexp --only-matching '[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 7e79210

Please sign in to comment.