fix: force tty check to run with the default language

This fixes the case where the system language is non-english. See this stackexchange answer for more details: https://unix.stackexchange.com/q/87745

Closes #3588
This commit is contained in:
Jose Diaz-Gonzalez committed 2019-10-14 05:03:18 -04:00
1 parent 844b86840a
commit 35287a2d28
1 file changed
+1 -1
+1 -1
View File
@@ -4,7 +4,7 @@ set -eo pipefail
has_tty() { has_tty() {
declare desc="return 0 if we have a tty" declare desc="return 0 if we have a tty"
if [[ "$(/usr/bin/tty || true)" == "not a tty" ]]; then if [[ "$(LC_ALL=C /usr/bin/tty || true)" == "not a tty" ]]; then
return 1 return 1
else else
return 0 return 0