From 1e83458917e5b19d67455978b069956c1d843d04 Mon Sep 17 00:00:00 2001 From: UltimateByte Date: Sun, 15 Jan 2017 02:36:39 +0100 Subject: [PATCH] Trying recursive installed mods display --- lgsm/functions/command_mods_update.sh | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/command_mods_update.sh b/lgsm/functions/command_mods_update.sh index e1a818bc1..26bf7ba69 100644 --- a/lgsm/functions/command_mods_update.sh +++ b/lgsm/functions/command_mods_update.sh @@ -6,5 +6,28 @@ # Description: Updates installed mods along with mods_list.sh. local commandname="MODS" -local commandaction="Mod Update" +local commandaction="Mods Update" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" + +check.sh +mods_list.sh + +fn_mods_update_init(){ + fn_script_log "Entering mods & addons update" + echo "=================================" + echo "${gamename} mods & addons update" + echo "" + # Installed mod dir is "${modslockfilefullpath}" + # How many mods will be updated + installedmodscount="$(cat "${modslockfilefullpath}" | wc -l)" + # Loop showing mods to update + for (( installedmodsline=$installedmodscount; installedmodsline<=5; installedmodsline++ )); do + sed -n 'installedmodsline{p;q}' "${modslockfilefullpath}" + done + + currentmod="${usermodselect}" + fn_mod_get_info_from_command + fn_print_dots_nl "Updating ${modprettyname}" + sleep 1 + fn_script_log "Updating ${modprettyname}." +}