Skip to content

Commit

Permalink
Use --help-tgf
Browse files Browse the repository at this point in the history
  • Loading branch information
klalumiere committed Nov 11, 2024
1 parent 3e01517 commit bcb23fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get-latest-tgf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fi

get_local_tgf_version () {
# The sed regex extracts for example 1.23.2 from "tgf v1.23.2", so as to be comparable to get_latest_tgf_version()
[ -r "${TGF}" ] && TGF_LOCAL_VERSION=$(${TGF} -H | grep 'VERSION: ' | sed 's/VERSION: //')
[ -r "${TGF}" ] && TGF_LOCAL_VERSION=$(${TGF} --help-tgf | grep 'VERSION: ' | sed 's/VERSION: //')
}

get_latest_tgf_version () {
Expand Down

0 comments on commit bcb23fa

Please sign in to comment.