Răsfoiți Sursa

Validate fix

Fixes Fixes #991 for validate command
Also, it lacked a line jump.
UltimateByte 9 ani în urmă
părinte
comite
88c70c9928
1 a modificat fișierele cu 4 adăugiri și 1 ștergeri
  1. 4 1
      lgsm/functions/command_validate.sh

+ 4 - 1
lgsm/functions/command_validate.sh

@@ -9,6 +9,7 @@ local commandaction="Validate"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 fn_validation(){
+	echo ""
 	echo -e "	* Validating may overwrite some customised files."
 	echo -en "	* https://developer.valvesoftware.com/wiki/SteamCMD#Validate"
 	sleep 3
@@ -19,7 +20,9 @@ fn_validation(){
 
 	cd "${rootdir}/steamcmd"
 
-	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