Skip to content

Commit

Permalink
[#3530] Address review
Browse files Browse the repository at this point in the history
- Fix bad substitution.
  • Loading branch information
andrei-pavel committed Jan 10, 2025
1 parent 079e035 commit 7f2fcc9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions changelog_unreleased/.add-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ if test -e "${file}"; then
exit 1
fi
content=$(cat .template)
content="${content//author/${author}}"
content="${content//#0000/#${gitlab_id}}"
content="$(printf '%s' "${content}" | sed "s/author/${author}/")"
content="$(printf '%s' "${content}" | sed "s/#0000/#${gitlab_id}/")"
printf '%s\n' "${content}" > "${file}"
printf 'File created: %s\n' "${basedir}/${file}"

0 comments on commit 7f2fcc9

Please sign in to comment.