Explorar o código

No need to check for systemdir, lgsm already does

UltimateByte %!s(int64=9) %!d(string=hai) anos
pai
achega
29d2b51085
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      lgsm/functions/command_mods_install.sh

+ 1 - 5
lgsm/functions/command_mods_install.sh

@@ -44,12 +44,8 @@ fn_mods_install_init(){
 }
 
 fn_mods_requirements(){
-	# If systemdir doesn't exist, then the game isn't installed
-	if [ ! -d "${systemdir}" ]; then
-		fn_print_fail "${gamename} needs to be installed first."
-		core_exit.sh
 	# If tompdir variable doesn't exist, LGSM is too old
-	elif [ -z "${tmpdir}" ]||[ -z "${lgsmdir}" ]; then
+	if [ -z "${tmpdir}" ]||[ -z "${lgsmdir}" ]; then
 		fn_print_fail "Your LGSM version is too old."
 		echo " * Please do a full update, including ${selfname} script."
 		core_exit.sh