fix: lint_version command compatibility with bash
MODIFY
.circleci/config.yml
.circleci/config.yml
@@ -199,7 +199,8 @@ jobs:
- run:
command: |
if [ -n "$CIRCLE_TAG" ]; then
- _tagged_version_ignoring_pre="${${CIRCLE_TAG#*v}%%-pre.*}"
+ _tagged_version="${CIRCLE_TAG#*v}"
+ _tagged_version_ignoring_pre="${_tagged_version%%-pre.*}"
_filed_version="$(head -n 1 ./VERSION | sed 's/^[ \t]*//;s/[ \t]*$//')"
if [ "$_tagged_version_ignoring_pre" != "$_filed_version" ]; then

fix: lint_version command compatibility with bash (#1502)