summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@server-speed.net>2011-05-27 13:39:56 +0200
committerFlorian Pritz <bluewind@server-speed.net>2011-05-27 13:40:16 +0200
commitfaff984d3ca13806e55228a174d1154045178474 (patch)
tree3812b1b34b091aec8c7aa62df13a1224e9c6086d
parent90813963d7625a96302a4e4378d4c34b88838b1b (diff)
downloadbin-faff984d3ca13806e55228a174d1154045178474.tar.gz
bin-faff984d3ca13806e55228a174d1154045178474.tar.xz
find-sodeps.sh: only check executable files
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
-rwxr-xr-xfind-sodeps.sh3
1 files changed, 1 insertions, 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