From 89eb3ee9f9b29de982412ffda8263602a8f6c187 Mon Sep 17 00:00:00 2001 From: UltimateByte Date: Sun, 15 Jan 2017 03:17:58 +0100 Subject: [PATCH] Fixed output --- lgsm/functions/command_mods_update.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lgsm/functions/command_mods_update.sh b/lgsm/functions/command_mods_update.sh index c99162ae1..f162bb33b 100644 --- a/lgsm/functions/command_mods_update.sh +++ b/lgsm/functions/command_mods_update.sh @@ -20,12 +20,14 @@ fn_mods_update_init(){ # Installed mod dir is "${modslockfilefullpath}" # How many mods will be updated installedmodscount="$(cat "${modslockfilefullpath}" | wc -l)" + echo "${installedmodscount} addons will be updated:" # Loop showing mods to update - while [ $installedmodsline -lte $installedmodscount ]; do - sed -n 'installedmodsline{p;q}' "${modslockfilefullpath}" - let installedmodscount=installedmodscount+1 - done - + installedmodsline=1 + while [ $installedmodsline -le $installedmodscount ]; do + echo -e " * \e[36m$(sed "${installedmodsline}q;d" "${modslockfilefullpath}")\e[0m" + let installedmodsline=installedmodsline+1 + done + exit #currentmod="${usermodselect}" #fn_mod_get_info_from_command #fn_print_dots_nl "Updating ${modprettyname}"