Handle DOKKU_FORCE_TTY in has_tty function

This commit is contained in:
Tasos Maschalidis
2024-02-11 00:57:44 +02:00
committed by GitHub
parent 596d785fe4
commit f574c1d0a3

View File

@@ -4,6 +4,10 @@ set -eo pipefail
has_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
return 1
fi