|
|
@ -20,7 +20,7 @@ elif [ "$(command -v readelf 2>/dev/null)" ]; then |
|
|
|
else |
|
|
|
echo "readelf/eu-readelf not installed" |
|
|
|
fi |
|
|
|
files=$(find ${serverfiles} | wc -l) |
|
|
|
files=$(find "${serverfiles}" | wc -l) |
|
|
|
find "${serverfiles}" -type f -print0 | |
|
|
|
while IFS= read -r -d $'\0' line; do |
|
|
|
if [ "${readelf}" == "eu-readelf" ]; then |
|
|
@ -34,7 +34,7 @@ done |
|
|
|
|
|
|
|
sort "${tmpdir}/.depdetect_readelf" |uniq >"${tmpdir}/.depdetect_readelf_uniq" |
|
|
|
|
|
|
|
while read lib; do |
|
|
|
while read -r lib; do |
|
|
|
if [ "${lib}" == "libm.so.6" ]||[ "${lib}" == "libc.so.6" ]||[ "${lib}" == "libtcmalloc_minimal.so.4" ]||[ "${lib}" == "libpthread.so.0" ]||[ "${lib}" == "libdl.so.2" ]||[ "${lib}" == "libnsl.so.1" ]||[ "${lib}" == "libgcc_s.so.1" ]||[ "${lib}" == "librt.so.1" ]||[ "${lib}" == "ld-linux.so.2" ]; then |
|
|
|
echo "glibc.i686" >> "${tmpdir}/.depdetect_centos_list" |
|
|
|
echo "lib32gcc1" >> "${tmpdir}/.depdetect_ubuntu_list" |
|
|
|