Browse Source

Polishing

pull/1255/head
UltimateByte 8 years ago
committed by GitHub
parent
commit
821db97417
  1. 7
      lgsm/functions/command_mods_install.sh

7
lgsm/functions/command_mods_install.sh

@ -11,7 +11,6 @@ local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh check.sh
mods_core.sh mods_core.sh
mods_list.sh
fn_mods_install_init(){ fn_mods_install_init(){
fn_script_log "Entering mods & addons installation" fn_script_log "Entering mods & addons installation"
@ -52,8 +51,8 @@ fn_mod_installation(){
fn_mod_get_info_from_command fn_mod_get_info_from_command
# Check if mod is already installed # Check if mod is already installed
fn_mod_already_installed fn_mod_already_installed
# Check and create required directories # Check and create required files
fn_mods_dir fn_mods_files
# Clear lgsm/tmp/mods dir if exists then recreate it # Clear lgsm/tmp/mods dir if exists then recreate it
fn_clear_tmp_mods fn_clear_tmp_mods
fn_mods_tmpdir fn_mods_tmpdir
@ -77,9 +76,11 @@ fn_mod_installation(){
fn_script_log "${modprettyname} installed." fn_script_log "${modprettyname} installed."
else else
fn_print_fail "No mod was selected" fn_print_fail "No mod was selected"
exitcode="1"
core_exit.sh core_exit.sh
fi fi
} }
fn_mods_install_init fn_mods_install_init
fn_mod_installation fn_mod_installation
core_exit.sh

Loading…
Cancel
Save