|
|
@ -50,6 +50,15 @@ fn_mods_update_loop(){ |
|
|
|
if [ -n "${currentmod}" ]; then |
|
|
|
# Get mod info |
|
|
|
fn_mod_get_info_from_command |
|
|
|
# Don't update the mod if it's policy is to "NOUPDATE" |
|
|
|
if [ "${modkeepfiles}" == "NOUPDATE" ]; then |
|
|
|
fn_print_warning "${modprettyname} update has been disabled by LGSM." |
|
|
|
echo " * Usual reason is to prevent erasing custom files." |
|
|
|
echo " * If you still wish to update this mod: |
|
|
|
echo " * 1) Backup your critical mod files |
|
|
|
echo " * 2) Uninstall the mod with ./${selfname} mods-uninstall (optionnal) |
|
|
|
echo " * 3) Re-install the mod with ./${selfname} mods-install" |
|
|
|
else |
|
|
|
fn_print_dots_nl "Updating ${modprettyname}" |
|
|
|
fn_script_log "Updating ${modprettyname}." |
|
|
|
# Check and create required directories |
|
|
@ -75,8 +84,10 @@ fn_mods_update_loop(){ |
|
|
|
fn_print_ok_nl "${modprettyname} installed." |
|
|
|
fn_script_log "${modprettyname} installed." |
|
|
|
let installedmodsline=installedmodsline+1 |
|
|
|
fi |
|
|
|
else |
|
|
|
fn_print_fail "No mod was selected." |
|
|
|
fn_script_log_fail "No mod was selected." |
|
|
|
core_exit.sh |
|
|
|
fi |
|
|
|
done |
|
|
|