mirror of
https://github.com/jaygooby/ttfb.sh
synced 2025-12-10 07:57:21 +01:00
Silence the locale check
This commit is contained in:
2
ttfb
2
ttfb
@@ -67,7 +67,7 @@ done
|
||||
|
||||
# Ensure curl uses period separators for floating point values, which
|
||||
# bc requires to do calculations (i.e. it can't use locale separators like ,)
|
||||
if (locale -a | egrep ^C.UTF-8$); then
|
||||
if (locale -a | egrep ^C.UTF-8$ > /dev/null); then
|
||||
export LC_ALL=C.UTF-8
|
||||
else
|
||||
export LC_ALL=C
|
||||
|
||||
Reference in New Issue
Block a user