From 206e6293bd6cf689ecc3893f1306f171c0a2e8d0 Mon Sep 17 00:00:00 2001 From: Rene Ladan Date: Sat, 3 Jun 2023 13:05:28 +0200 Subject: Tools/scripts/rmport: do not add a trailing colon when only removing one port Reported by: sunpoet (via private mail) --- Tools/scripts/rmport | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Tools') diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport index aea264512b87..776f1efcb8c0 100755 --- a/Tools/scripts/rmport +++ b/Tools/scripts/rmport @@ -415,13 +415,15 @@ gitrmlist=$(mktemp -t gitrmlist) if [ $# -eq 1 ] ; then topic="${1%/}" plural="" + colon="" else log "/!\\ Removing multiple ports at once, commit topic will be generic /!\\" topic="cleanup" plural="s" + colon=":" fi -echo "${topic}: Remove expired port${plural}:" > ${gitlog} +echo "${topic}: Remove expired port${plural}${colon}" > ${gitlog} echo "" >> ${gitlog} for catport in $* ; do -- cgit v1.2.3