From faff984d3ca13806e55228a174d1154045178474 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 27 May 2011 13:39:56 +0200 Subject: find-sodeps.sh: only check executable files Signed-off-by: Florian Pritz --- find-sodeps.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/find-sodeps.sh b/find-sodeps.sh index b522cee..0c93548 100755 --- a/find-sodeps.sh +++ b/find-sodeps.sh @@ -22,8 +22,7 @@ in_array() { return 1 # Not Found } -find . -type f | while read filename -do +find . -type f -executable | while read filename; do # get architecture of the file; if soarch is empty it's not an ELF binary soarch=$(LC_ALL=C readelf -h "$filename" 2>/dev/null | sed -n 's/.*Class.*ELF\(32\|64\)/\1/p') [ -n "$soarch" ] || continue -- cgit v1.2.3-24-g4f1b