command_update.sh 469 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # LGSM command_update.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://gameservermanagers.com
  5. # Description: Handles updating of servers.
  6. local modulename="Update"
  7. local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  8. check.sh
  9. fn_print_dots "Checking for update"
  10. if [ "${gamename}" == "Teamspeak 3" ]; then
  11. update_ts3.sh
  12. elif [ "${engine}" == "goldsource" ]||[ "${forceupdate}" == "1" ]; then
  13. update_steamcmd.sh
  14. fi
  15. core_exit.sh