git: 206e6293bd6c - main - Tools/scripts/rmport: do not add a trailing colon when only removing one port

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Sat, 03 Jun 2023 11:07:03 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=206e6293bd6cf689ecc3893f1306f171c0a2e8d0

commit 206e6293bd6cf689ecc3893f1306f171c0a2e8d0
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2023-06-03 11:05:28 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2023-06-03 11:06:52 +0000

    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(-)

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