From e597a7b2b968b35610733cfb28cd30782fdb5c0e Mon Sep 17 00:00:00 2001 From: Mason Rowe Date: Fri, 24 Mar 2023 00:38:13 -0400 Subject: [PATCH] hide error output if locale not found --- yabs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yabs.sh b/yabs.sh index 4c3c164..ce0a0b4 100644 --- a/yabs.sh +++ b/yabs.sh @@ -12,7 +12,7 @@ # performance via fio. The script is designed to not require any dependencies # - either compiled or installed - nor admin privileges to run. -YABS_VERSION="v2023-02-27" +YABS_VERSION="v2023-03-24" echo -e '# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #' echo -e '# Yet-Another-Bench-Script #' @@ -26,7 +26,7 @@ TIME_START=$(date '+%Y%m%d-%H%M%S') YABS_START_TIME=$(date +%s) # override locale to eliminate parsing errors (i.e. using commas as delimiters rather than periods) -if locale -a | grep ^C$ > /dev/null ; then +if locale -a 2>/dev/null | grep ^C$ > /dev/null; then # locale "C" installed export LC_ALL=C else