feat: add --no-tty flag to run and run:detached commands
This commit is contained in:
@@ -4,6 +4,10 @@ set -eo pipefail
|
||||
|
||||
has_tty() {
|
||||
declare desc="return 0 if we have a tty"
|
||||
if [[ "$DOKKU_DISABLE_TTY" == "true" ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [[ "$(LC_ALL=C /usr/bin/tty || true)" == "not a tty" ]]; then
|
||||
return 1
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user