commit:     e55d050cdceaa145ae77120772450a2cf2e77f5f
Author:     Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
AuthorDate: Sat May 21 15:57:36 2016 +0000
Commit:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Mon May 23 11:32:47 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e55d050c

net-firewall/shorewall: bash syntax tidy

replace POSIX '[' with the bash '[[' in 5.0.8.2

Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/1512

Signed-off-by: Ian Delaney <idella4 <AT> gentoo.org>

 net-firewall/shorewall/shorewall-5.0.8.2.ebuild | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/net-firewall/shorewall/shorewall-5.0.8.2.ebuild 
b/net-firewall/shorewall/shorewall-5.0.8.2.ebuild
index 96d62a2..afd5706 100644
--- a/net-firewall/shorewall/shorewall-5.0.8.2.ebuild
+++ b/net-firewall/shorewall/shorewall-5.0.8.2.ebuild
@@ -145,7 +145,7 @@ pkg_pretend() {
 }
 
 pkg_setup() {
-       if [ -n "${DIGEST}" ]; then
+       if [[ -n "${DIGEST}" ]]; then
                einfo "Unsetting environment variable \"DIGEST\" to prevent 
conflicts with package's \"install.sh\" script ..."
                unset DIGEST
        fi
@@ -291,21 +291,21 @@ src_install() {
                DESTDIR="${D%/}" ${MY_PN_INIT}/install.sh shorewallrc.gentoo || 
die "${MY_PN_INIT}/install.sh failed"
                dodoc "${S}"/${MY_PN_INIT}/shorewall-init.README.Gentoo.txt
 
-               if [ -f "${D}etc/logrotate.d/shorewall-init" ]; then
+               if [[ -f "${D}etc/logrotate.d/shorewall-init" ]]; then
                        # On Gentoo, shorewall-init will not create 
shorewall-ifupdown.log,
                        # so we don't need a logrotate configuration file for 
shorewall-init
                        einfo "Removing unused 
\"${D}etc/logrotate.d/shorewall-init\" ..."
                        rm -rf "${D}"etc/logrotate.d/shorewall-init || die 
"Removing \"${D}etc/logrotate.d/shorewall-init\" failed"
                fi
 
-               if [ -d "${D}etc/NetworkManager" ]; then
+               if [[ -d "${D}etc/NetworkManager" ]]; then
                        # On Gentoo, we don't support NetworkManager
                        # so we don't need this folder at all
                        einfo "Removing unused \"${D}etc/NetworkManager\" ..."
                        rm -rf "${D}"etc/NetworkManager || die "Removing 
\"${D}etc/NetworkManager\" failed"
                fi
 
-               if [ -f "${D}usr/share/shorewall-init/ifupdown" ]; then
+               if [[ -f "${D}usr/share/shorewall-init/ifupdown" ]]; then
                        # This script isn't supported on Gentoo
                        rm -rf "${D}"usr/share/shorewall-init/ifupdown || die 
"Removing \"${D}usr/share/shorewall-init/ifupdown\" failed"
                fi

Reply via email to