Browse Source

new attempt

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

27
lgsm/functions/command_mods_update.sh

@ -17,17 +17,20 @@ fn_mods_update_init(){
echo "=================================" echo "================================="
echo "${gamename} mods & addons update" echo "${gamename} mods & addons update"
echo "" echo ""
# 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)"
# Loop showing mods to update # Loop showing mods to update
for (( installedmodsline=$installedmodscount; installedmodsline<=5; installedmodsline++ )); do while [ $installedmodsline -lte $installedmodscount ]; do
sed -n 'installedmodsline{p;q}' "${modslockfilefullpath}" sed -n 'installedmodsline{p;q}' "${modslockfilefullpath}"
done let installedmodscount=installedmodscount+1
done
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}"
sleep 1 #sleep 1
fn_script_log "Updating ${modprettyname}." #fn_script_log "Updating ${modprettyname}."
} }
fn_mods_update_init

Loading…
Cancel
Save