]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3530] Address review
authorAndrei Pavel <andrei@isc.org>
Fri, 10 Jan 2025 16:53:11 +0000 (18:53 +0200)
committerAndrei Pavel <andrei@isc.org>
Fri, 10 Jan 2025 16:53:11 +0000 (18:53 +0200)
- Fix bad substitution.

changelog_unreleased/.add-entry.sh

index c64168805690e1b9dd652cec1c492c1bd895524c..85fc82578b4db8b49f48b65d8b3defa9eda33d05 100755 (executable)
@@ -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}"