commit: 0459f86990ce4e130731dca4c89d73d607e5142e
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 10 04:30:43 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 10 04:31:33 2022 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=0459f869
estrip: drop noisy strip banner if nothing to do
Fixes: e8f0e06784549fc4c8a06e0a43ff946d6a895683
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 68ce8bd4d..b8764039b 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 < <(
- printf "%s\n" "${scanelf_results[@]}"
+ [[ -n ${scanelf_results[@]} ]] && printf "%s\n"
"${scanelf_results[@]}"
find "${find_paths[@]}" -type f ! -type l -name
'*.a'
)