Browse Source

updated to hide wget

Looks pretty and will return wget errors like OK of not found etc
pull/254/merge
Daniel Gibbs 10 years ago
parent
commit
28ee0c8990
  1. 7
      functions/fn_steamdl

7
functions/fn_steamdl

@ -2,8 +2,9 @@
# LGSM fn_steamdl function # LGSM fn_steamdl function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 231114 # Version: 231214
echo ""
echo "Installing SteamCMD" echo "Installing SteamCMD"
echo "=================================" echo "================================="
cd "${rootdir}" cd "${rootdir}"
@ -11,7 +12,8 @@ mkdir -pv "steamcmd"
sleep 1 sleep 1
cd "steamcmd" cd "steamcmd"
if [ ! -f steamcmd.sh ]; then if [ ! -f steamcmd.sh ]; then
wget -nv -N http://media.steampowered.com/client/steamcmd_linux.tar.gz echo -e "downloading steamcmd_linux.tar.gz...\c"
wget --no-check-certificate /dev/null http://media.steampowered.com/client/steamcmd_linux.tar.gz 2>&1 | grep -F HTTP | cut -c45-
tar --verbose -zxf steamcmd_linux.tar.gz tar --verbose -zxf steamcmd_linux.tar.gz
rm -v steamcmd_linux.tar.gz rm -v steamcmd_linux.tar.gz
chmod +x steamcmd.sh chmod +x steamcmd.sh
@ -20,4 +22,3 @@ else
echo "Steam already installed!" echo "Steam already installed!"
fi fi
sleep 1 sleep 1
echo ""
Loading…
Cancel
Save