Browse Source

Fixed output

pull/1255/head
UltimateByte 8 years ago
committed by GitHub
parent
commit
89eb3ee9f9
  1. 12
      lgsm/functions/command_mods_update.sh

12
lgsm/functions/command_mods_update.sh

@ -20,12 +20,14 @@ fn_mods_update_init(){
# Installed mod dir is "${modslockfilefullpath}" # Installed mod dir is "${modslockfilefullpath}"
# How many mods will be updated # How many mods will be updated
installedmodscount="$(cat "${modslockfilefullpath}" | wc -l)" installedmodscount="$(cat "${modslockfilefullpath}" | wc -l)"
echo "${installedmodscount} addons will be updated:"
# Loop showing mods to update # Loop showing mods to update
while [ $installedmodsline -lte $installedmodscount ]; do installedmodsline=1
sed -n 'installedmodsline{p;q}' "${modslockfilefullpath}" while [ $installedmodsline -le $installedmodscount ]; do
let installedmodscount=installedmodscount+1 echo -e " * \e[36m$(sed "${installedmodsline}q;d" "${modslockfilefullpath}")\e[0m"
done let installedmodsline=installedmodsline+1
done
exit
#currentmod="${usermodselect}" #currentmod="${usermodselect}"
#fn_mod_get_info_from_command #fn_mod_get_info_from_command
#fn_print_dots_nl "Updating ${modprettyname}" #fn_print_dots_nl "Updating ${modprettyname}"

Loading…
Cancel
Save