소스 검색

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"
 
-        if [ $(command -v unbuffer) ]; then
-		unbuffer=unbuffer
-        elif  [ $(command -v stdbuf) ]; then
+    if  [ $(command -v stdbuf) ]; then
 		unbuffer="stdbuf -i0 -o0 -e0"
 	fi
 

+ 1 - 3
lgsm/functions/install_server_files.sh

@@ -45,9 +45,7 @@ fn_install_server_files_steamcmd(){
 			fi
 
 			# 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"
 			fi
 

+ 1 - 3
lgsm/functions/update_dl.sh

@@ -14,9 +14,7 @@ fn_steamcmd_dl(){
 	cd "steamcmd"
 
 	# 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"
 	fi