mirror of
https://github.com/masonr/yet-another-bench-script.git
synced 2025-11-05 15:41:30 +05:30
hide error output if locale not found
This commit is contained in:
parent
3ef703ab68
commit
e597a7b2b9
1 changed files with 2 additions and 2 deletions
4
yabs.sh
4
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue