Просмотр исходного кода

get mod info at the right time

UltimateByte 9 лет назад
Родитель
Сommit
bb99b30bd1
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      lgsm/functions/command_mods_install.sh

+ 3 - 2
lgsm/functions/command_mods_install.sh

@@ -72,7 +72,9 @@ while [[ ! " ${availablemodscommands[@]} " =~ " ${usermodselect} " ]]; do
 		fn_print_error2_nl "${usermodselect} is not a valid addon/mod."
 		fn_print_error2_nl "${usermodselect} is not a valid addon/mod."
 	fi
 	fi
 done
 done
+# Get mod info
 currentmod="${usermodselect}"
 currentmod="${usermodselect}"
+fn_mod_get_info
 
 
 echo ""
 echo ""
 echo "Installing ${modprettyname}"
 echo "Installing ${modprettyname}"
@@ -100,7 +102,6 @@ fi
 
 
 ## Installation
 ## Installation
 
 
-fn_mod_get_info
 fn_create_mods_dir
 fn_create_mods_dir
 fn_mods_clear_tmp_dir
 fn_mods_clear_tmp_dir
 fn_mods_create_tmp_dir
 fn_mods_create_tmp_dir
@@ -114,4 +115,4 @@ fn_mods_clear_tmp_dir
 echo "${modprettyname} installed"
 echo "${modprettyname} installed"
 fn_script_log_pass "${modprettyname} installed."
 fn_script_log_pass "${modprettyname} installed."
 
 
-core_exit.sh
+core_exit.sh