Fix: Include missing quotes around $var 33/97433/2
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 9 Sep 2021 22:10:45 +0000 (08:10 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Sat, 11 Sep 2021 00:26:25 +0000 (10:26 +1000)
The CR d3079426375d requires quotes for variable
substitution work as expected within the sed regex.

Issue-ID: https://jira.linuxfoundation.org/browse/RELENG-3931
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I4080e18f0e42f525b23cb32146df814abea922fd

jjb/autorelease/generate-release-notes.sh

index 08c1409caddaa384b6008e39a4c71cede9de61c3..b63642881d64958f9f90102d69c82182d7e460e2 100644 (file)
@@ -37,7 +37,7 @@ DOCS_DIR=$(mktemp -d)
 git clone -b "$GERRIT_BRANCH" https://git.opendaylight.org/gerrit/docs.git "$DOCS_DIR"
 cd "$DOCS_DIR" || exit 1
 cp "$WORKSPACE/release-notes.rst" "docs/release-notes/release-notes-${RELEASE,,}.rst"
-sed -i -e '$a  .. release-notes-${RELEASE,,}' "docs/release-notes/index.rst"
+sed -i -e '$a  .. release-notes-'"${RELEASE,,}"'' "docs/release-notes/index.rst"
 git add docs/release-notes/
 
 GERRIT_COMMIT_MESSAGE="Update release notes for $RELEASE"