From cb38c8d4ed0d2c09aa41b08bbb623e0717f1546d Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 14 Mar 2018 22:07:31 +0000 Subject: [PATCH] SC2086 --- lgsm/functions/command_dev_detect_glibc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/command_dev_detect_glibc.sh b/lgsm/functions/command_dev_detect_glibc.sh index 4fb472a94..eb1249a95 100644 --- a/lgsm/functions/command_dev_detect_glibc.sh +++ b/lgsm/functions/command_dev_detect_glibc.sh @@ -28,8 +28,8 @@ elif [ -f "${serverfiles}" ]; then fi echo "" -files=$(find ${serverfiles} | wc -l) -find ${serverfiles} -type f -print0 | +files=$(find "${serverfiles}" | wc -l) +find "${serverfiles}" -type f -print0 | while IFS= read -r -d $'\0' line; do glibcversion=$(objdump -T "${line}" 2>/dev/null|grep -oP "GLIBC[^ ]+" |grep -v GLIBCXX|sort|uniq|sort -r --version-sort| head -n 1) if [ "${glibcversion}" ]; then