fn_install_steamcmd 737 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. # LGSM fn_check_steamcmd function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. lgsm_version="061115"
  6. # Description: Downloads SteamCMD on install and checks if missing before running functions that require SteamCMD
  7. echo ""
  8. echo "Installing SteamCMD"
  9. echo "================================="
  10. cd "${rootdir}"
  11. mkdir -pv "steamcmd"
  12. sleep 1
  13. cd "steamcmd"
  14. if [ ! -f steamcmd.sh ]; then
  15. echo -e "downloading steamcmd_linux.tar.gz...\c"
  16. wget -N /dev/null http://media.steampowered.com/client/steamcmd_linux.tar.gz 2>&1 | grep -F HTTP | cut -c45-| uniq
  17. tar --verbose -zxf steamcmd_linux.tar.gz
  18. rm -v steamcmd_linux.tar.gz
  19. chmod +x steamcmd.sh
  20. sleep 1
  21. else
  22. echo "Steam already installed!"
  23. fi
  24. sleep 1