We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 079e035 commit 7f2fcc9Copy full SHA for 7f2fcc9
changelog_unreleased/.add-entry.sh
@@ -15,6 +15,7 @@ if test -e "${file}"; then
15
exit 1
16
fi
17
content=$(cat .template)
18
-content="${content//author/${author}}"
19
-content="${content//#0000/#${gitlab_id}}"
+content="$(printf '%s' "${content}" | sed "s/author/${author}/")"
+content="$(printf '%s' "${content}" | sed "s/#0000/#${gitlab_id}/")"
20
printf '%s\n' "${content}" > "${file}"
21
+printf 'File created: %s\n' "${basedir}/${file}"
0 commit comments