commit:     2274610a3adacc42b560ab36fae5498389c6790e
Author:     Dustin Smith <smith.dustin2017 <AT> gmail <DOT> com>
AuthorDate: Sun Jul 24 01:52:36 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sun Jul 24 16:49:19 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2274610a

net-firewall/ufw: fix word split issue

Shellcheck found another SC2066 bug -- this is just a quick commit to
fix it and make the for loop work as intended.

Bug: https://bugs.gentoo.org/839216
Signed-off-by: Dustin Smith <smith.dustin2017 <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/26560
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 net-firewall/ufw/ufw-0.36-r1.ebuild | 2 +-
 net-firewall/ufw/ufw-0.36.1.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-firewall/ufw/ufw-0.36-r1.ebuild 
b/net-firewall/ufw/ufw-0.36-r1.ebuild
index 052ffc4ee44e..5458db7c5f99 100644
--- a/net-firewall/ufw/ufw-0.36-r1.ebuild
+++ b/net-firewall/ufw/ufw-0.36-r1.ebuild
@@ -198,7 +198,7 @@ pkg_postinst() {
                print_check_req_warn=true
        else
                local rv
-               for rv in "${REPLACING_VERSIONS}"; do
+               for rv in ${REPLACING_VERSIONS}; do
                        local major=${rv%%.*}
                        local minor=${rv#${major}.}
                        if [[ "${major}" -eq 0 && "${minor}" -lt 34 ]]; then

diff --git a/net-firewall/ufw/ufw-0.36.1.ebuild 
b/net-firewall/ufw/ufw-0.36.1.ebuild
index a4d9ce8191ff..d818538b68da 100644
--- a/net-firewall/ufw/ufw-0.36.1.ebuild
+++ b/net-firewall/ufw/ufw-0.36.1.ebuild
@@ -196,7 +196,7 @@ pkg_postinst() {
                print_check_req_warn=true
        else
                local rv
-               for rv in "${REPLACING_VERSIONS}"; do
+               for rv in ${REPLACING_VERSIONS}; do
                        local major=${rv%%.*}
                        local minor=${rv#${major}.}
                        if [[ "${major}" -eq 0 && "${minor}" -lt 34 ]]; then

Reply via email to