Handle DOKKU_FORCE_TTY in has_tty function
This commit is contained in:
committed by
GitHub
parent
596d785fe4
commit
f574c1d0a3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user