瀏覽代碼

Create fn_check_steamuser

Scarsz 11 年之前
父節點
當前提交
9fab0b0562
共有 1 個文件被更改,包括 11 次插入0 次删除
  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