Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit e7b3ec9

Browse files
author
tao.pan
committed
fix: optimize
1 parent 4abd74f commit e7b3ec9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/deploy.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
with open('pom.xml', 'w+', encoding='utf-8') as fw:
3131
replaced = re.sub('<project.version>.*?</project.version>',
32-
version.join(['<project.version>', '</project.version>']), content)
32+
version.join(['<project.version>', '</project.version>']), content, 1)
3333
fw.write(replaced)
3434

3535
# 安装至本地maven仓库
@@ -48,4 +48,5 @@
4848

4949
os.chdir(project_repository_path)
5050
print(os.popen('git add .').read())
51-
print(os.popen('git commit -m "shell release %s v%s"' % ('validator', version)).read())
51+
print(os.popen('git commit -m "shell release %s v%s"' %
52+
('validator', version)).read())

0 commit comments

Comments
 (0)