summaryrefslogtreecommitdiff
path: root/bin/check-opcodes
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-23 20:06:55 +0100
committerErich Eckner <git@eckner.net>2018-03-23 20:06:55 +0100
commit497779257683e1c4ee2f2bf4c25687b34323c6be (patch)
tree44b512356b80d3adad6521ad74f38ff9271f6c0d /bin/check-opcodes
parentd90db40944ab8818c6207872fb8ae81fa2488056 (diff)
downloadbuilder-497779257683e1c4ee2f2bf4c25687b34323c6be.tar.xz
bin/check-opcodes: fix find expression to retrieve libraries only
Diffstat (limited to 'bin/check-opcodes')
-rwxr-xr-xbin/check-opcodes2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/check-opcodes b/bin/check-opcodes
index c7ab4a9..bd96cc6 100755
--- a/bin/check-opcodes
+++ b/bin/check-opcodes
@@ -101,7 +101,7 @@ log "Checking for architecture: $ARCH ($OPCODE_ARGS)"
bsdtar --no-fflags -x -C $tmp_dir -f $PACKAGE
# shellcheck disable=SC2044
-for absfile in $(find $tmp_dir -name '*.so*' -type f); do
+for absfile in $(find $tmp_dir -regextype grep -regex '.*\.so\(\.[0-9.]\+\)\?' -type f); do
file=$(basename $absfile)
log "Checking shared library: $file"
readelf -a $absfile > $tmp_dir/$file.elf