git: 3a59d525a9bb - main - Tools/scripts/rmport: remove extraneous trailing '/' in single-port commit messages

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Sun, 30 Apr 2023 11:41:26 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3a59d525a9bb64d19ecc54eadc756a2bdff01840

commit 3a59d525a9bb64d19ecc54eadc756a2bdff01840
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2023-04-30 11:29:38 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2023-04-30 11:29:38 +0000

    Tools/scripts/rmport: remove extraneous trailing '/' in single-port commit messages
---
 Tools/scripts/rmport | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport
index f478c5856c2f..56adf93ea816 100755
--- a/Tools/scripts/rmport
+++ b/Tools/scripts/rmport
@@ -411,7 +411,7 @@ gitlog=$(mktemp -t gitlog)
 gitrmlist=$(mktemp -t gitrmlist)
 
 if [ $# -eq 1 ] ; then
-	topic="$1"
+	topic="${1%/}"
 	plural=""
 else
 	log "/!\\ Removing multiple ports at once, commit topic will be generic /!\\"