Skip to content

Commit e26cd4c

Browse files
authored
Merge 8d10f0f into master
2 parents 4aa27a4 + 8d10f0f commit e26cd4c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ prepare_branch() {
9898
# Merge the branch to the releases branch and check the CHANGELOG.md
9999
if [[ "$BRANCH_TO_RELEASE" != "releases" ]] ; then
100100
git merge "origin/$BRANCH_TO_RELEASE"
101+
git submodule update --init --recursive
101102

102103
while true
103104
do
@@ -144,7 +145,7 @@ prepare_branch() {
144145

145146
# Update date in change log
146147
cur_date=$(date "+%F")
147-
sed -i .bak "1 s/YYYY-MM-DD/${cur_date}/" CHANGELOG.md
148+
sed "1 s/YYYY-MM-DD/${cur_date}/" CHANGELOG.md > CHANGELOG.md.tmp && mv CHANGELOG.md.tmp CHANGELOG.md
148149
git add CHANGELOG.md
149150
git commit -m "Update changelog date"
150151

0 commit comments

Comments
 (0)