git: ed3a6d6fb005 - main - textproc/xmlcatmgr: fix syntax errors in pkg-deinstall script

From: Antoine Brodin <antoine_at_FreeBSD.org>
Date: Sun, 12 Jun 2022 07:15:43 UTC
The branch main has been updated by antoine:

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

commit ed3a6d6fb005e92eccd4d1223a6de6742c1c8485
Author:     Antoine Brodin <antoine@FreeBSD.org>
AuthorDate: 2022-06-12 07:15:11 +0000
Commit:     Antoine Brodin <antoine@FreeBSD.org>
CommitDate: 2022-06-12 07:15:11 +0000

    textproc/xmlcatmgr: fix syntax errors in pkg-deinstall script
---
 textproc/xmlcatmgr/Makefile               | 2 +-
 textproc/xmlcatmgr/files/pkg-deinstall.in | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/textproc/xmlcatmgr/Makefile b/textproc/xmlcatmgr/Makefile
index 22d70c169fc4..d975dc2e1616 100644
--- a/textproc/xmlcatmgr/Makefile
+++ b/textproc/xmlcatmgr/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	xmlcatmgr
 PORTVERSION=	2.2
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	textproc
 MASTER_SITES=	SF
 
diff --git a/textproc/xmlcatmgr/files/pkg-deinstall.in b/textproc/xmlcatmgr/files/pkg-deinstall.in
index a4f0561834c6..63c47a255806 100644
--- a/textproc/xmlcatmgr/files/pkg-deinstall.in
+++ b/textproc/xmlcatmgr/files/pkg-deinstall.in
@@ -16,11 +16,11 @@ T=/tmp/catalog.$$
 
 ${XMLCATMGR} -sc ${CATALOG_MASTER_SGML} remove CATALOG catalog.ports
 ${XMLCATMGR} -sc ${T} create
-if cmp -s ${T} ${CATALOG_MASTER_SGML} ]; then
+if cmp -s ${T} ${CATALOG_MASTER_SGML}; then
 	echo " + Removing ${CATALOG_MASTER_SGML}.  It is empty."
 	rm -f ${CATALOG_MASTER_SGML}
 fi
-if cmp -s ${T} ${CATALOG_PORTS_SGML} ]; then
+if cmp -s ${T} ${CATALOG_PORTS_SGML}; then
 	echo " + Removing ${CATALOG_PORTS_SGML}.  It is empty."
 	rm -f ${CATALOG_PORTS_SGML}
 fi
@@ -28,11 +28,11 @@ rm -f ${T}
 
 ${XMLCATMGR} -c ${CATALOG_MASTER_XML} remove nextCatalog ${CATALOG_PORTS_XML}
 ${XMLCATMGR} -c ${T} create
-if cmp -s ${T} ${CATALOG_MASTER_XML} ]; then
+if cmp -s ${T} ${CATALOG_MASTER_XML}; then
 	echo " + Removing ${CATALOG_MASTER_XML}.  It is empty."
 	rm -f ${CATALOG_MASTER_XML}
 fi
-if cmp -s ${T} ${CATALOG_PORTS_XML} ]; then
+if cmp -s ${T} ${CATALOG_PORTS_XML}; then
 	echo " + Removing ${CATALOG_PORTS_XML}.  It is empty."
 	rm -f ${CATALOG_PORTS_XML}
 fi