diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2017-03-21 12:08:46 +0200 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2017-03-21 12:08:46 +0200 |
commit | b3052672fbb78403fc2104cdb1093abe9ed80b0c (patch) | |
tree | da44a0a75ad05d0a15c6195c902368de5875e6d0 /main/ipset | |
parent | 727d3b879fa8593da80813e43fbd57e08fb2bc32 (diff) | |
download | aports-b3052672fbb78403fc2104cdb1093abe9ed80b0c.tar.bz2 aports-b3052672fbb78403fc2104cdb1093abe9ed80b0c.tar.xz |
main/ipset: fix variable scope
Diffstat (limited to 'main/ipset')
-rw-r--r-- | main/ipset/APKBUILD | 4 | ||||
-rw-r--r-- | main/ipset/ipset.initd | 20 |
2 files changed, 11 insertions, 13 deletions
diff --git a/main/ipset/APKBUILD b/main/ipset/APKBUILD index 224f3bb71b..0b3c758fed 100644 --- a/main/ipset/APKBUILD +++ b/main/ipset/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> pkgname=ipset pkgver=6.32 -pkgrel=2 +pkgrel=3 pkgdesc="Manage Linux IP sets" url=http://ipset.netfilter.org/ arch="all" @@ -45,4 +45,4 @@ package() { } sha512sums="7b0f5e7ef1a777ab70872aa52f658ff9516cb5de4c67c56d7f596eb88db03467d39b10ffc098441b4bfa4bb21a15f3c5f7f7f825300ce8efbacd767369ad43c7 ipset-6.32.tar.bz2 -3b65c2cfc3c85240c988b7f1d63131e0d364c9605c6b81184167c17b6820c7cab2818f765a90790946954bcf700024a088238a1c9ebddf1667288f5562c4b8ce ipset.initd" +d8a85dd7796fcab7d8894eb763d82af91d7abebd7f6a1f1d6d90c8297c8fda141821cf230ade2d9f554ddd0122ab10e18823722f112f0b9de6f4bd097590ca51 ipset.initd" diff --git a/main/ipset/ipset.initd b/main/ipset/ipset.initd index 2678c007e8..649b310ac5 100644 --- a/main/ipset/ipset.initd +++ b/main/ipset/ipset.initd @@ -85,17 +85,15 @@ save() { reload() { ebegin "Loading firewall IP sets" - ( - local swap= - for name in $(set_files); do - local new=$name - if set_exists $name; then - new=_init_$name - swap="$swap $name" - fi - echo create $new $(set_file $name | head -n 1) - done - ) | ipset restore + local swap= + for name in $(set_files); do + local new=$name + if set_exists $name; then + new=_init_$name + swap="$swap $name" + fi + echo create $new $(set_file $name | head -n 1) + done | ipset restore ( for name in $(set_files); do |