diff options
author | Andrei Pavel <andrei@isc.org> | 2025-01-10 17:53:11 +0100 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2025-01-10 17:53:11 +0100 |
commit | 7f2fcc9425aac5fc2e39565169f17064ad0afd52 (patch) | |
tree | 70eb8ea4ca1970e563faf7547dffcd677386b02c | |
parent | [#3530] Address review (diff) | |
download | kea-7f2fcc9425aac5fc2e39565169f17064ad0afd52.tar.xz kea-7f2fcc9425aac5fc2e39565169f17064ad0afd52.zip |
[#3530] Address review
- Fix bad substitution.
-rwxr-xr-x | changelog_unreleased/.add-entry.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/changelog_unreleased/.add-entry.sh b/changelog_unreleased/.add-entry.sh index c641688056..85fc82578b 100755 --- a/changelog_unreleased/.add-entry.sh +++ b/changelog_unreleased/.add-entry.sh @@ -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}" |