From 42f21d82fe4267dd6ff818d6763ccdca5db5c07e Mon Sep 17 00:00:00 2001 From: Andrew Nester Date: Wed, 20 Dec 2023 13:01:53 +0100 Subject: [PATCH] Do not prompt for template values in Git Bash (#1082) ## Changes Follow up on #1077 --- libs/template/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/template/config.go b/libs/template/config.go index a54d394d..85fa2265 100644 --- a/libs/template/config.go +++ b/libs/template/config.go @@ -213,7 +213,7 @@ func (c *config) promptForValues(r *renderer) error { // terminal is not TTY func (c *config) promptOrAssignDefaultValues(r *renderer) error { // TODO: replace with IsPromptSupported call (requires fixing TestAccBundleInitErrorOnUnknownFields test) - if cmdio.IsOutTTY(c.ctx) && cmdio.IsInTTY(c.ctx) { + if cmdio.IsOutTTY(c.ctx) && cmdio.IsInTTY(c.ctx) && !cmdio.IsGitBash(c.ctx) { return c.promptForValues(r) } return c.assignDefaultValues(r)