command_update.sh 484 B

123456789101112131415161718192021222324
  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 commandname="UPDATE"
  7. local commandaction="Update"
  8. local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  9. fn_print_dots ""
  10. sleep 0.5
  11. check.sh
  12. if [ "${gamename}" == "Teamspeak 3" ]; then
  13. update_ts3.sh
  14. elif [ "${gamename}" == "Mumble" ]; then
  15. update_mumble.sh
  16. else
  17. update_steamcmd.sh
  18. fi
  19. core_exit.sh