Add script to search for missing libraries

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer 2019-02-24 11:45:55 +00:00
parent 232c42e14d
commit 21eead8d17
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#!/bin/bash
# This scripts lists binaries that have missing libraries.
# Arguments are paths to search in
main() {
local path
for path in $@; do
local file
for file in $(find "${path}" -type f); do
if ldd "${file}" 2>/dev/null | grep -q "not found"; then
echo "${file}"
ldd "${file}"
fi
done
done
}
main "$@" || exit $?