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'
                        )
 

Reply via email to