From 95c049609f54655e152aac06c81865a6f13ae669 Mon Sep 17 00:00:00 2001 From: Tasos Maschalidis Date: Sun, 11 Feb 2024 13:54:10 +0200 Subject: [PATCH] Exit if both --force-tty and --no-tty are set --- plugins/run/internal-functions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/run/internal-functions b/plugins/run/internal-functions index cf6f00eec..a09694c66 100755 --- a/plugins/run/internal-functions +++ b/plugins/run/internal-functions @@ -54,6 +54,10 @@ fn-run() { esac done + if [[ "$DOKKU_DISABLE_TTY" == "true" ]] && [[ "$DOKKU_FORCE_TTY" == "true" ]]; then + dokku_log_fail "Cannot specify both --force-tty and --no-tty" + fi + verify_app_name "$APP" local DOKKU_SCHEDULER=$(get_app_scheduler "$APP")