diff options
author | Göktürk Yüksek <gokturk@gentoo.org> | 2016-05-21 11:57:36 -0400 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2016-05-23 19:32:47 +0800 |
commit | e55d050cdceaa145ae77120772450a2cf2e77f5f (patch) | |
tree | 348bc763e2edec446d3f198365e150637a0feabf /net-firewall | |
parent | net-firewall/shorewall: remove trailing whitespaces (diff) | |
download | gentoo-e55d050cdceaa145ae77120772450a2cf2e77f5f.tar.gz gentoo-e55d050cdceaa145ae77120772450a2cf2e77f5f.tar.bz2 gentoo-e55d050cdceaa145ae77120772450a2cf2e77f5f.zip |
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@gentoo.org>
Diffstat (limited to 'net-firewall')
-rw-r--r-- | net-firewall/shorewall/shorewall-5.0.8.2.ebuild | 8 |
1 files 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 96d62a21e21a..afd5706f3cc4 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 |