Skip to content

Commit 7f2fcc9

Browse files
committed
[#3530] Address review
- Fix bad substitution.
1 parent 079e035 commit 7f2fcc9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

changelog_unreleased/.add-entry.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ if test -e "${file}"; then
1515
exit 1
1616
fi
1717
content=$(cat .template)
18-
content="${content//author/${author}}"
19-
content="${content//#0000/#${gitlab_id}}"
18+
content="$(printf '%s' "${content}" | sed "s/author/${author}/")"
19+
content="$(printf '%s' "${content}" | sed "s/#0000/#${gitlab_id}/")"
2020
printf '%s\n' "${content}" > "${file}"
21+
printf 'File created: %s\n' "${basedir}/${file}"

0 commit comments

Comments
 (0)