Handle DOKKU_FORCE_TTY in has_tty function
This commit is contained in:
1 parent
596d785fe4
commit
f574c1d0a3
1 file changed
+4
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user