From 88c70c99288c0a60ac4f0a867c30930efd6b77e5 Mon Sep 17 00:00:00 2001 From: UltimateByte Date: Tue, 17 Jan 2017 22:55:59 +0100 Subject: [PATCH] Validate fix Fixes Fixes #991 for validate command Also, it lacked a line jump. --- lgsm/functions/command_validate.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/command_validate.sh b/lgsm/functions/command_validate.sh index 6125ed513..3627acdb6 100644 --- a/lgsm/functions/command_validate.sh +++ b/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