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
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"
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"
git add docs/release-notes/
GERRIT_COMMIT_MESSAGE="Update release notes for $RELEASE"