Преглед изворни кода

Fixes #991 (#1165)

* stbuf will no longer be used on x64 #991
UltimateByte пре 9 година
родитељ
комит
f7a2ec60fc
2 измењених фајлова са 7 додато и 5 уклоњено
  1. 4 3
      lgsm/functions/install_server_files.sh
  2. 3 2
      lgsm/functions/update_steamcmd.sh

+ 4 - 3
lgsm/functions/install_server_files.sh

@@ -61,8 +61,9 @@ fn_install_server_files_steamcmd(){
 				check_steamcmd.sh
 			fi
 
-			# Detects if unbuffer command is available.
-			if [ $(command -v stdbuf) ]; then
+			# Detects if unbuffer command is available for 32 bit distributions only.
+			info_distro.sh
+			if [ $(command -v stdbuf) ]&&[ "${arch}" != "x86_64" ]; then
 				unbuffer="stdbuf -i0 -o0 -e0"
 			fi
 
@@ -134,4 +135,4 @@ if [ -z "${autoinstall}" ]; then
 			* ) echo "Please answer yes or no.";;
 		esac
 	done
-fi
+fi

+ 3 - 2
lgsm/functions/update_steamcmd.sh

@@ -19,8 +19,9 @@ fn_update_steamcmd_dl(){
 
 	cd "${rootdir}/steamcmd"
 
-	# Detects if unbuffer command is available.
-	if [ $(command -v stdbuf) ]; then
+	# Detects if unbuffer command is available for 32 bit distributions only.
+	info_distro.sh
+	if [ $(command -v stdbuf) ]&&[ "${arch}" != "x86_64" ]; then
 		unbuffer="stdbuf -i0 -o0 -e0"
 	fi