Merge pull request #7377 from filecoin-project/mg/fix/binary-ci-check-grep

fix: escape periods to match actual periods in version
This commit is contained in:
Jiaying Wang 2021-09-22 21:15:27 -04:00 committed by GitHub
commit 21148c90db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ function validate_lotus_version_matches_tag(){
# get version # get version
lotus_raw_version=`${lotus_path} --version` lotus_raw_version=`${lotus_path} --version`
# grep for version string # grep for version string
lotus_actual_version=`echo ${lotus_raw_version} | grep -oE '[0-9]+.[0-9]+.[0-9]+'` lotus_actual_version=`echo ${lotus_raw_version} | grep -oE '[0-9]+\.[0-9]+\.[0-9]+'`
# trim leading 'v' # trim leading 'v'
tag=${2#v} tag=${2#v}