commit: 899851a8a9dc955b879aca9bc63e2e87c48a71e8
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Mon Aug 8 03:20:46 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 5 11:22:08 2025 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=899851a8
estrip: use test -v instead of ${param-unset}
Wherever there is a need to test whether a variable is set, 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/estrip | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/estrip b/bin/estrip
index 50bf308f08..1c1af8965a 100755
--- a/bin/estrip
+++ b/bin/estrip
@@ -498,8 +498,8 @@ if (( ! has_restriction[binchecks] )); then
__multijob_child_init
qa_var="QA_PRESTRIPPED_${ARCH/-/_}"
[[ -n ${!qa_var} ]] && QA_PRESTRIPPED="${!qa_var}"
- if [[ -n ${QA_PRESTRIPPED} && -s ${log} && \
- ${QA_STRICT_PRESTRIPPED-unset} = unset ]] ; then
+ if [[ -n ${QA_PRESTRIPPED} && -s ${log} &&
+ ! -v QA_STRICT_PRESTRIPPED ]] ; then
shopts=$-
set -o noglob
for x in ${QA_PRESTRIPPED} ; do