From bcb3eb3a6657937f45b2c22b4a600557b7b29c9d Mon Sep 17 00:00:00 2001 From: Joonas Niilola Date: Mon, 16 Aug 2021 09:02:43 +0300 Subject: net-firewall/ufw: bashify the new check Signed-off-by: Joonas Niilola --- net-firewall/ufw/ufw-0.36.ebuild | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'net-firewall') diff --git a/net-firewall/ufw/ufw-0.36.ebuild b/net-firewall/ufw/ufw-0.36.ebuild index 0da5a40cfa58..ed4a7029034c 100644 --- a/net-firewall/ufw/ufw-0.36.ebuild +++ b/net-firewall/ufw/ufw-0.36.ebuild @@ -167,28 +167,28 @@ pkg_postinst() { print_check_req_warn=false local found=() - local apps=("${CATEGORY}/arno-iptables-firewall" - "${CATEGORY}/ferm" - "${CATEGORY}/firehol" - "${CATEGORY}/firewalld" - "${CATEGORY}/ipkungfu") + local apps=( "net-firewall/arno-iptables-firewall" + "net-firewall/ferm" + "net-firewall/firehol" + "net-firewall/firewalld" + "net-firewall/ipkungfu" ) for exe in "${apps[@]}" do - if has_version ''"${exe}"''; then + if has_version "${exe}"; then found+=( "${exe}" ) fi done - if [ -n "$found" ]; then - echo + if [[ -n ${found} ]]; then + echo "" ewarn "WARNING: Detected other firewall applications:" ewarn "${found[@]}" ewarn "If enabled, these applications may interfere with ufw!" fi if [[ -z "${REPLACING_VERSIONS}" ]]; then - echo + echo "" elog "To enable ufw, add it to boot sequence and activate it:" elog "-- # rc-update add ufw boot" elog "-- # /etc/init.d/ufw start" -- cgit v1.2.3-65-gdbad