瀏覽代碼

Merge pull request #893 from DaMaxx/master

Fix for Steam Guard Authentication, possibly dirty
Daniel Gibbs 10 年之前
父節點
當前提交
eaba86d336
共有 3 個文件被更改,包括 3 次插入9 次删除
  1. 1 3
      lgsm/functions/command_validate.sh
  2. 1 3
      lgsm/functions/install_server_files.sh
  3. 1 3
      lgsm/functions/update_dl.sh

+ 1 - 3
lgsm/functions/command_validate.sh

@@ -22,9 +22,7 @@ fn_validation(){
 
 
 	cd "${rootdir}/steamcmd"
 	cd "${rootdir}/steamcmd"
 
 
-        if [ $(command -v unbuffer) ]; then
-		unbuffer=unbuffer
-        elif  [ $(command -v stdbuf) ]; then
+    if  [ $(command -v stdbuf) ]; then
 		unbuffer="stdbuf -i0 -o0 -e0"
 		unbuffer="stdbuf -i0 -o0 -e0"
 	fi
 	fi
 
 

+ 1 - 3
lgsm/functions/install_server_files.sh

@@ -45,9 +45,7 @@ fn_install_server_files_steamcmd(){
 			fi
 			fi
 
 
 			# Detects if unbuffer command is available.
 			# Detects if unbuffer command is available.
-			if [ $(command -v unbuffer) ]; then
-				unbuffer=unbuffer
-                        elif  [ $(command -v stdbuf) ]; then
+            if  [ $(command -v stdbuf) ]; then
 		            unbuffer="stdbuf -i0 -o0 -e0"
 		            unbuffer="stdbuf -i0 -o0 -e0"
 			fi
 			fi
 
 

+ 1 - 3
lgsm/functions/update_dl.sh

@@ -14,9 +14,7 @@ fn_steamcmd_dl(){
 	cd "steamcmd"
 	cd "steamcmd"
 
 
 	# Detects if unbuffer command is available.
 	# Detects if unbuffer command is available.
-	if [ $(command -v unbuffer) ]; then
-		unbuffer=unbuffer
-        elif  [ $(command -v stdbuf) ]; then
+    if  [ $(command -v stdbuf) ]; then
 		unbuffer="stdbuf -i0 -o0 -e0"
 		unbuffer="stdbuf -i0 -o0 -e0"
 	fi
 	fi