Skip to content

Commit

Permalink
RC1 - fix C memory corruption when writing C tables
Browse files Browse the repository at this point in the history
Fix version extraction suffix issue
  • Loading branch information
haorldbchi committed Nov 7, 2022
1 parent 7b5cb4a commit e93d2d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
2.0.0
2.0.1
rc1
5 changes: 5 additions & 0 deletions extract-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ if [[ "$version_str" == "$bb_version_suffix" ]]; then
bb_version_suffix=
fi

# prepend a '-' to the suffix, if necessarry
if [[ -n "$bb_version_suffix" ]] && [[ "${bb_version_suffix:0:1}" != "-" ]]; then
bb_version_suffix="-${bb_version_suffix}"
fi

bb_ver_maj=$(printf $version_str | sed -E -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)/\1/' | xargs)
bb_ver_min=$(printf $version_str | sed -E -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)/\2/' | xargs)
bb_ver_rev=$(printf $version_str | sed -E -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)/\3/' | xargs)
Expand Down

0 comments on commit e93d2d9

Please sign in to comment.