Fix release name in Launchpad comment

If SERIES=antelope, release.sh would run the `=Antelope` command:

    /home/zuul/scripts/release-tools/release.sh: line 102: =Antelope: command not found

This was not fatal because `set +e` was set earlier, but caused the
content argument of launchpad_add_comment_set_status.py to be incorrect.

Change-Id: Iebfb022be57ea5a59c42cedd58af9582be189ab0
This commit is contained in:
Pierre Riteau 2024-12-05 15:10:18 +01:00
parent eeb421be7e
commit 007413ca92

View File

@ -99,7 +99,7 @@ if [[ -z "$BUGS" ]]; then
echo "No bugs found $PREVIOUS .. $VERSION"
else
# Capitalize the series name for the comment message. Requires >= bash 4.0.
$NAME=$(echo ${SERIES^})
NAME=$(echo ${SERIES^})
python3 -u $TOOLSDIR/launchpad_add_comment_set_status.py \
--subject="Fix included in $REPO $VERSION" \
--content="This issue was fixed in the $REPO $VERSION $NAME $RELEASETYPE." \