Handle DOKKU_FORCE_TTY in has_tty function

This commit is contained in:
Tasos Maschalidis authored and GitHub committed 2024-02-11 00:57:44 +02:00
1 parent 596d785fe4
commit f574c1d0a3
1 file changed
+4
+4
View File
@@ -4,6 +4,10 @@ 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 [[ "$DOKKU_FORCE_TTY" == "true" ]]; then
return 0
fi
if [[ "$DOKKU_DISABLE_TTY" == "true" ]]; then if [[ "$DOKKU_DISABLE_TTY" == "true" ]]; then
return 1 return 1
fi fi