gameservergame-servergame-servershacktoberfestdedicated-game-serversgamelinuxgsmserverbashgaminglinuxmultiplayer-game-servershell
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.0 KiB
36 lines
1.0 KiB
#!/bin/bash
|
|
# LGSM command_mods_update.sh function
|
|
# Author: Daniel Gibbs
|
|
# Contributor: UltimateByte
|
|
# Website: https://gameservermanagers.com
|
|
# Description: Updates installed mods along with mods_list.sh.
|
|
|
|
local commandname="MODS"
|
|
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
|
|
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}."
|
|
}
|
|
|
|
fn_mods_update_init
|
|
|