diff --git a/lgsm/functions/command_mods_update.sh b/lgsm/functions/command_mods_update.sh index c737d2a4a..40250a58d 100644 --- a/lgsm/functions/command_mods_update.sh +++ b/lgsm/functions/command_mods_update.sh @@ -11,7 +11,6 @@ local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" check.sh mods_core.sh -mods_list.sh fn_mods_update_init(){ fn_script_log "Entering mods & addons update" @@ -59,8 +58,8 @@ fn_mods_update_loop(){ echo "" fn_print_dots_nl "Updating ${modprettyname}" fn_script_log "Updating ${modprettyname}." - # Check and create required directories - fn_mods_dir + # Check and create required files + fn_mods_files # Clear lgsm/tmp/mods dir if exists then recreate it fn_clear_tmp_mods fn_mods_tmpdir @@ -89,6 +88,7 @@ fn_mods_update_loop(){ else fn_print_fail "No mod was selected" fn_script_log_fail "No mod was selected." + exitcode="1" core_exit.sh fi done @@ -99,3 +99,4 @@ fn_mods_update_loop(){ fn_mods_update_init fn_mods_update_loop +core_exit.sh