Explorar el Código

Corrected SteamCMD GLIBC check

Daniel Gibbs hace 8 años
padre
commit
983d46ea06
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      lgsm/functions/info_glibc.sh

+ 2 - 2
lgsm/functions/info_glibc.sh

@@ -203,9 +203,9 @@ else
 	glibcfix="no"
 	glibcfix="no"
 fi
 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 [ -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"
 		glibcrequired="2.14"
 		glibcfix="no"
 		glibcfix="no"
 	fi
 	fi