commit:     1e46ca91ad9036086c17150bce6cb00ba018fdbb
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 31 03:50:13 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 31 03:50:13 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e46ca91

net-proxy/squid: use Bash tests

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-proxy/squid/squid-4.15-r3.ebuild  | 4 ++--
 net-proxy/squid/squid-4.17-r1.ebuild  | 4 ++--
 net-proxy/squid/squid-5.4.1-r2.ebuild | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/net-proxy/squid/squid-4.15-r3.ebuild 
b/net-proxy/squid/squid-4.15-r3.ebuild
index b41ec27dec43..fa02246b5aea 100644
--- a/net-proxy/squid/squid-4.15-r3.ebuild
+++ b/net-proxy/squid/squid-4.15-r3.ebuild
@@ -11,7 +11,7 @@ HOMEPAGE="http://www.squid-cache.org/";
 # Upstream patch ID for the most recent bug-fixed update to the formal release.
 r=
 #r=-20181117-r0022167
-if [ -z "$r" ]; then
+if [[ -z "${r}" ]]; then
        SRC_URI="http://www.squid-cache.org/Versions/v${PV%.*}/${P}.tar.xz";
 else
        SRC_URI="http://www.squid-cache.org/Versions/v${PV%.*}/${P}${r}.tar.bz2";
@@ -274,7 +274,7 @@ src_install() {
 
 pkg_postinst() {
        elog "A good starting point to debug Squid issues is to use 
'squidclient mgr:' commands such as 'squidclient mgr:info'."
-       if [ ${#r} -gt 0 ]; then
+       if [[ ${#r} -gt 0 ]]; then
                elog "You are using a release with the official ${r} patch! 
Make sure you mention that, or send the output of 'squidclient mgr:info' when 
asking for support."
        fi
 }

diff --git a/net-proxy/squid/squid-4.17-r1.ebuild 
b/net-proxy/squid/squid-4.17-r1.ebuild
index e3ab95c2f679..106d72f54d7e 100644
--- a/net-proxy/squid/squid-4.17-r1.ebuild
+++ b/net-proxy/squid/squid-4.17-r1.ebuild
@@ -11,7 +11,7 @@ HOMEPAGE="http://www.squid-cache.org/";
 # Upstream patch ID for the most recent bug-fixed update to the formal release.
 r=
 #r=-20181117-r0022167
-if [ -z "$r" ]; then
+if [[ -z "${r}" ]]; then
        SRC_URI="http://www.squid-cache.org/Versions/v${PV%.*}/${P}.tar.xz";
 else
        SRC_URI="http://www.squid-cache.org/Versions/v${PV%.*}/${P}${r}.tar.bz2";
@@ -276,7 +276,7 @@ src_install() {
 
 pkg_postinst() {
        elog "A good starting point to debug Squid issues is to use 
'squidclient mgr:' commands such as 'squidclient mgr:info'."
-       if [ ${#r} -gt 0 ]; then
+       if [[ ${#r} -gt 0 ]]; then
                elog "You are using a release with the official ${r} patch! 
Make sure you mention that, or send the output of 'squidclient mgr:info' when 
asking for support."
        fi
 }

diff --git a/net-proxy/squid/squid-5.4.1-r2.ebuild 
b/net-proxy/squid/squid-5.4.1-r2.ebuild
index e2ca2e516dbd..94456703bd17 100644
--- a/net-proxy/squid/squid-5.4.1-r2.ebuild
+++ b/net-proxy/squid/squid-5.4.1-r2.ebuild
@@ -12,7 +12,7 @@ MY_PV_MAJOR=$(ver_cut 1)
 # Upstream patch ID for the most recent bug-fixed update to the formal release.
 r=
 #r=-20181117-r0022167
-if [ -z "$r" ]; then
+if [[ -z "${r}" ]]; then
        
SRC_URI="http://www.squid-cache.org/Versions/v${MY_PV_MAJOR}/${P}.tar.xz";
 else
        
SRC_URI="http://www.squid-cache.org/Versions/v${MY_PV_MAJOR}/${P}${r}.tar.bz2";
@@ -278,7 +278,7 @@ src_install() {
 
 pkg_postinst() {
        elog "A good starting point to debug Squid issues is to use 
'squidclient mgr:' commands such as 'squidclient mgr:info'."
-       if [ ${#r} -gt 0 ]; then
+       if [[ ${#r} -gt 0 ]]; then
                elog "You are using a release with the official ${r} patch! 
Make sure you mention that, or send the output of 'squidclient mgr:info' when 
asking for support."
        fi
 }

Reply via email to