This commit is contained in:
Looly
2023-05-04 15:04:35 +08:00
parent 485b6ef744
commit c64baff56f
7 changed files with 8 additions and 7 deletions

View File

@@ -18,7 +18,7 @@
# 2. 替换README.md和docs中的版本号
#------------------------------------------------
if [ !-n "$1" ]; then
if [ -z "$1" ]; then
echo "ERROR: 新版本不存在请指定参数1"
exit
fi
@@ -30,4 +30,4 @@ mvn versions:set -DnewVersion=$1
version=${1%-SNAPSHOT}
# 替换其它地方的版本
$(pwd)/bin/replaceVersion.sh "$version"
"$(pwd)"/bin/replaceVersion.sh "$version"