Skip to content

Commit

Permalink
Fix issues from f8dca9f
Browse files Browse the repository at this point in the history
- version.sh is sourced from configure. Using 'exit' causes configure to quit
- Periods matches any char in BRE. Should be escaped
  • Loading branch information
wangqr committed Aug 21, 2022
1 parent a596a88 commit db3cdde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if ! test -d "${srcdir}/.git"; then
done < "${version_h_path}"
if test x$BUILD_GIT_VERSION_NUMBER != x -a x$BUILD_GIT_VERSION_STRING != x; then
export VERSION_SOURCE="from cached git_version.h"
exit 0
return 0
else
echo "invalid git_version.h"
exit 2
Expand All @@ -36,7 +36,7 @@ resource_version='0, 0, 0'
if test x$git_version_str != x; then
git_version_str="${git_version_str##v}"
tagged_release=1
if [ $(echo $git_version_str | grep '[0-9].[0-9].[0-9]') ]; then
if [ $(echo $git_version_str | grep '[0-9]\.[0-9]\.[0-9]') ]; then
installer_version=$git_version_str
resource_version=$(echo $git_version_str | sed 's/\./, /g')
fi
Expand Down

0 comments on commit db3cdde

Please sign in to comment.