Skip to content

Commit df68f0f

Browse files
committed
fix: Do not remove badges in rename project script
1 parent 7a23189 commit df68f0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/scripts/rename_project.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ if [[ "$GITHUB_REPOSITORY_OWNER" != "devcentral" && "$GITHUB_REPOSITORY_OWNER" !
3535
rm -f .github/workflows/f5_cla.yml
3636
fi
3737
# Remove the template instructions from the README and the template's CHANGELOG
38-
sed -i '1,/^---$/d;1,/^$/d' README.md
39-
sed -i '1,/^---$/d;1,/^$/d' CHANGELOG.md
38+
sed -i '1,/^---$/ { /^$/d; d }' README.md
39+
sed -i '1,/^---$/ { /^$/d; d }' CHANGELOG.md
4040
# Remove this script and the GitHub Action workflow using this script
4141
rm -f .github/workflows/rename_template.yml
4242
rm -rf .github/workflows/scripts

0 commit comments

Comments
 (0)