]>
git.rmz.io Git - dotfiles.git/blob - bin/socheck
0995d76fad1affa0accbb84580c4f0c9ca89c36d
5 files
=$
(find /usr
/bin
/extra
/usr
/bin
-maxdepth 1 -type f
)
6 libs
=$
(find /usr
/lib
/*.so
* /extra
/usr
/lib
/*.so
* -maxdepth 1 -type f
)
8 echo "Searching broken binaries...."
10 for binary
in $files ; do
11 parse
=$
(sudo ldd
${binary} | grep "not found")
12 if [ "${parse}" != "" ] ; then
13 echo "$(LC_ALL=C pacman -Qo $binary) seem broken!"
19 echo "Searching broken libs...."
22 if [ -x ${lib} ] ; then
23 parse
=$
(sudo ldd
${lib} | grep "not found")
24 if [ "${parse}" != "" ] ; then
25 echo "$(LC_ALL=C pacman -Qo $lib) seem broken!"