From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1427311-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id F16EA158094
	for <garchives@archives.gentoo.org>; Sat, 13 Aug 2022 17:51:17 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 3EE65E07AE;
	Sat, 13 Aug 2022 17:51:17 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 094D5E07AE
	for <gentoo-commits@lists.gentoo.org>; Sat, 13 Aug 2022 17:51:17 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 16490341183
	for <gentoo-commits@lists.gentoo.org>; Sat, 13 Aug 2022 17:51:16 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 8478E326
	for <gentoo-commits@lists.gentoo.org>; Sat, 13 Aug 2022 17:51:14 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1660412923.f35bf4828ac56b4ab4f7fb4ccc846ebdee33767d.sam@gentoo>
Subject: [gentoo-commits] proj/portage:master commit in: bin/
X-VCS-Repository: proj/portage
X-VCS-Files: bin/estrip
X-VCS-Directories: bin/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: f35bf4828ac56b4ab4f7fb4ccc846ebdee33767d
X-VCS-Branch: master
Date: Sat, 13 Aug 2022 17:51:14 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: bbbafe41-0b48-425d-8785-bf634fae45e8
X-Archives-Hash: f907db8541dd5a63b481afc9d158bcd7

commit:     f35bf4828ac56b4ab4f7fb4ccc846ebdee33767d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 13 17:48:43 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Aug 13 17:48:43 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=f35bf482

estrip: tidy up size check for scanelf_results

Thanks-to: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/estrip | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/estrip b/bin/estrip
index b8764039b..d7be51743 100755
--- a/bin/estrip
+++ b/bin/estrip
@@ -104,7 +104,7 @@ while [[ $# -gt 0 ]] ; do
 			while IFS= read -r path; do
 				>> "${path}.estrip" || die
 			done < <(
-				[[ -n ${scanelf_results[@]} ]] && printf "%s\n" "${scanelf_results[@]}"
+				(( ${#scanelf_results[@]} )) && printf "%s\n" "${scanelf_results[@]}"
 				find "${find_paths[@]}" -type f ! -type l -name '*.a'
 			)