Browse Source

new attempt

pull/1255/head
UltimateByte 8 years ago
committed by GitHub
parent
commit
e229b2c7ea
  1. 15
      lgsm/functions/command_mods_update.sh

15
lgsm/functions/command_mods_update.sh

@ -21,13 +21,16 @@ fn_mods_update_init(){
# How many mods will be updated
installedmodscount="$(cat "${modslockfilefullpath}" | wc -l)"
# Loop showing mods to update
for (( installedmodsline=$installedmodscount; installedmodsline<=5; installedmodsline++ )); do
while [ $installedmodsline -lte $installedmodscount ]; do
sed -n 'installedmodsline{p;q}' "${modslockfilefullpath}"
let installedmodscount=installedmodscount+1
done
currentmod="${usermodselect}"
fn_mod_get_info_from_command
fn_print_dots_nl "Updating ${modprettyname}"
sleep 1
fn_script_log "Updating ${modprettyname}."
#currentmod="${usermodselect}"
#fn_mod_get_info_from_command
#fn_print_dots_nl "Updating ${modprettyname}"
#sleep 1
#fn_script_log "Updating ${modprettyname}."
}
fn_mods_update_init

Loading…
Cancel
Save