Do not prompt for template values in Git Bash (#1082)

## Changes
Follow up on #1077
This commit is contained in:
Andrew Nester 2023-12-20 13:01:53 +01:00 committed by GitHub
parent f18094d943
commit 42f21d82fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)