Skip to content

Commit 463d912

Browse files
author
姚世权
committed
draft
1 parent 79d0ed9 commit 463d912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ for module_path in "${update_pom_modules[@]}"; do
2828
cd "$module_path" || exit
2929
artifact_id=$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)
3030
version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
31-
new_version=$(echo $version | awk -F'[.]' '{printf "%d.%d.%d", $1, $2, $3+1}')
31+
new_version=$(echo "$version" | awk -F'[.]' '{printf "%d.%d.%d", $1, $2, $3+1}')
3232
echo "path=$module_path, artifact_id=${artifact_id}, version=$version, new_version=$new_version"
3333
if [[ "$module_path" == "." ]]; then
3434
root_version=$new_version

0 commit comments

Comments
 (0)