diff options
author | Florian Pritz <bluewind@server-speed.net> | 2011-05-27 13:39:56 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@server-speed.net> | 2011-05-27 13:40:16 +0200 |
commit | faff984d3ca13806e55228a174d1154045178474 (patch) | |
tree | 3812b1b34b091aec8c7aa62df13a1224e9c6086d | |
parent | 90813963d7625a96302a4e4378d4c34b88838b1b (diff) | |
download | bin-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-x | find-sodeps.sh | 3 |
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 |