Explorar o código

Create fn_check_steamuser

Scarsz %!s(int64=11) %!d(string=hai) anos
pai
achega
9fab0b0562
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      functions/fn_check_steamuser

+ 11 - 0
functions/fn_check_steamuser

@@ -0,0 +1,11 @@
+#!/bin/bash
+# LGSM fn_install_serverfiles function
+# Author: Daniel Gibbs
+# Website: http://gameservermanagers.com
+# Version: 160515
+
+if [ -z "${steamuser}" ]; then
+        fn_printwarningnl "SteamCMD user variable is not assigned in the main script! Resorting to anonymous login"
+	steamuser="anonymous"
+	steampass=""
+fi