Explorar el Código

updated to hide wget

Looks pretty and will return wget errors like OK of not found etc
Daniel Gibbs hace 11 años
padre
commit
28ee0c8990
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      functions/fn_steamdl

+ 5 - 4
functions/fn_steamdl

@@ -2,8 +2,9 @@
 # LGSM fn_steamdl function
 # Author: Daniel Gibbs
 # Website: http://danielgibbs.co.uk
-# Version: 231114
+# Version: 231214
 
+echo ""
 echo "Installing SteamCMD"
 echo "================================="
 cd "${rootdir}"
@@ -11,7 +12,8 @@ mkdir -pv "steamcmd"
 sleep 1
 cd "steamcmd"
 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
 	rm -v steamcmd_linux.tar.gz
 	chmod +x steamcmd.sh
@@ -19,5 +21,4 @@ if [ ! -f steamcmd.sh ]; then
 else
 	echo "Steam already installed!"
 fi
-sleep 1
-echo ""
+sleep 1