Kaynağa Gözat

Corrected SteamCMD GLIBC check

Daniel Gibbs 8 yıl önce
ebeveyn
işleme
983d46ea06
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      lgsm/functions/info_glibc.sh

+ 2 - 2
lgsm/functions/info_glibc.sh

@@ -203,9 +203,9 @@ else
 	glibcfix="no"
 fi
 
-# Sets the SteamCMD GLIBC requirement if server requirement is less.
+# Sets the SteamCMD GLIBC requirement if the game server requirement is less or not required.
 if [ -n "${appid}" ]; then
-	if [ "${glibcrequired}" = "NOT REQUIRED" ]||[ "${glibcrequired}" < "2.14" ]||[ -z "${glibcrequired}" ] ; then
+	if [ "${glibcrequired}" = "NOT REQUIRED" ]||[ -z "${glibcrequired}" ]||[ "$(printf '%s\n'${glibcrequired}'\n' "${glibcversion}" | sort -V | head -n 1)" != "2.14" ]; then
 		glibcrequired="2.14"
 		glibcfix="no"
 	fi