diff --git a/lgsm/functions/fix_glibc.sh b/lgsm/functions/fix_glibc.sh index 3a90f23db..b1ea50d4b 100644 --- a/lgsm/functions/fix_glibc.sh +++ b/lgsm/functions/fix_glibc.sh @@ -6,11 +6,12 @@ lgsm_version="020116" info_glibc.sh -if [ $(printf '%s\n$glibc_required\n' $glibc_version | sort -V | head -n 1) != ${glibc_required} ]; then +if [ "$(printf '%s\n$glibc_required\n' $glibc_version | sort -V | head -n 1)" != "${glibc_required}" ]; then echo "Version $(ldd --version | sed -n '1s/.* //p') is lower than $glibc_required" if [ "${glibcfix}" == "yes" ]; then echo "applied glibc fix" - export LD_LIBRARY_PATH=:${lgsmdir}/lib/ubuntu12.04/i386 + echo "export LD_LIBRARY_PATH=:"${lgsmdir}/lib/ubuntu12.04/i386"" + export LD_LIBRARY_PATH=:"${lgsmdir}/lib/ubuntu12.04/i386" else echo "no glibc fix available you need to upgrade bro!!" fi