Merge pull request #3682 from dokku/3588-tty-default-lang
Force tty check to run with the default language
This commit is contained in:
commit
d759c6c12d
1 file changed
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user