From f574c1d0a3d1604e46f916529226af29cd8cab43 Mon Sep 17 00:00:00 2001 From: Tasos Maschalidis Date: Sun, 11 Feb 2024 00:57:44 +0200 Subject: [PATCH] Handle DOKKU_FORCE_TTY in has_tty function --- plugins/common/functions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/common/functions b/plugins/common/functions index 7359a980a..716eced85 100755 --- a/plugins/common/functions +++ b/plugins/common/functions @@ -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