]> git.rmz.io Git - dotfiles.git/commitdiff
bin: pass LD_LIBRARY_PATH to ldd
authorSamir Benmendil <samir.benmendil@gmail.com>
Sat, 18 Apr 2015 05:12:39 +0000 (06:12 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Sat, 18 Apr 2015 05:12:39 +0000 (06:12 +0100)
bin/socheck

index f85bb2186c11fcda2d849aa137c3d33dc5b2a24a..78a351042d492d0790d03e5d3f99f854c1ebdbdd 100755 (executable)
@@ -2,7 +2,7 @@
 
 checkso() {
     for f in ${@}; do
-        if sudo ldd $f | grep -q "not found"; then
+        if sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH ldd $f | grep -q "not found"; then
             echo "$(LC_ALL=C pacman -Qoq $f) $f seems broken!"
         fi
     done