commit: efa72737441db0b88ceeff1222eaaca868171584
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Mon Aug 8 03:04:53 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 5 11:22:07 2025 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=efa72737
80multilib-strict: use test -v instead of ${param-unset}
Wherever there is a need to test whether a variable is unset, employ the
[[ ! -v name ]] command to do so. This is supported as of bash-4.2.
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
bin/install-qa-check.d/80multilib-strict | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/install-qa-check.d/80multilib-strict
b/bin/install-qa-check.d/80multilib-strict
index b3803a980a..39ac0f5672 100644
--- a/bin/install-qa-check.d/80multilib-strict
+++ b/bin/install-qa-check.d/80multilib-strict
@@ -23,7 +23,7 @@ multilib_strict_check() {
if [[ ${QA_MULTILIB_PATHS@a} != *a* ]] ; then
read -rd '' -a QA_MULTILIB_PATHS
<<<"${QA_MULTILIB_PATHS}"
fi
- if [ "${QA_STRICT_MULTILIB_PATHS-unset}" = unset ] ;
then
+ if [[ ! -v QA_STRICT_MULTILIB_PATHS ]] ; then
for dir in "${QA_MULTILIB_PATHS[@]}" ; do
sed -e "s#^${dir#/}\$##" -i
"${T}/multilib-strict.log"
done