2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 01:49:48 +00:00

[#3530] Address review

- Fix bad substitution.
This commit is contained in:
Andrei Pavel 2025-01-10 18:53:11 +02:00
parent 079e0352ae
commit 7f2fcc9425
No known key found for this signature in database
GPG Key ID: D4E804481939CB21

View File

@ -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}"