From bb99b30bd1b7d416151b4ab357214586c3c06d12 Mon Sep 17 00:00:00 2001 From: UltimateByte Date: Thu, 26 Jan 2017 00:03:12 +0100 Subject: [PATCH] get mod info at the right time --- lgsm/functions/command_mods_install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/command_mods_install.sh b/lgsm/functions/command_mods_install.sh index 0519c75c8..de1be8046 100644 --- a/lgsm/functions/command_mods_install.sh +++ b/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." fi done +# Get mod info currentmod="${usermodselect}" +fn_mod_get_info echo "" echo "Installing ${modprettyname}" @@ -100,7 +102,6 @@ fi ## Installation -fn_mod_get_info fn_create_mods_dir fn_mods_clear_tmp_dir fn_mods_create_tmp_dir @@ -114,4 +115,4 @@ fn_mods_clear_tmp_dir echo "${modprettyname} installed" fn_script_log_pass "${modprettyname} installed." -core_exit.sh \ No newline at end of file +core_exit.sh