command_update.sh 490 B

1234567891011121314151617181920
  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 commandnane="UPDATE"
  7. local commandaction="Update"
  8. local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  9. check.sh
  10. fn_print_dots "Checking for update"
  11. if [ "${gamename}" == "Teamspeak 3" ]; then
  12. update_ts3.sh
  13. elif [ "${engine}" == "goldsource" ]||[ "${forceupdate}" == "1" ]; then
  14. update_steamcmd.sh
  15. fi
  16. core_exit.sh