Răsfoiți Sursa

feat(install): refactor gslt to automatically detect gslt variable (#2280)

Daniel Gibbs 7 ani în urmă
părinte
comite
b6e3b1b191
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      lgsm/functions/command_install.sh

+ 2 - 2
lgsm/functions/command_install.sh

@@ -32,7 +32,7 @@ else
 
 	# Configuration
 	install_config.sh
-	if [ "${shortname}" == "bb2" ]||[ "${shortname}" == "bmdm" ]||[ "${shortname}" == "csgo" ]||[ "${shortname}" == "em" ]||[ "${shortname}" == "gmod" ]||[ "${shortname}" == "nmrih" ]||[ "${shortname}" == "tf2" ]||[ "${shortname}" == "tu" ]; then
+	if [ -v "${gslt}" ]; then
 		install_gslt.sh
 	elif [ "${shortname}" == "dst" ]; then
 		install_dst_token.sh
@@ -47,4 +47,4 @@ else
 	fix.sh
 	install_complete.sh
 	core_exit.sh
-fi
+fi