Skip to content

Commit

Permalink
Do not prompt for template values in Git Bash (#1082)
Browse files Browse the repository at this point in the history
## Changes
Follow up on #1077
  • Loading branch information
andrewnester authored Dec 20, 2023
1 parent f18094d commit 42f21d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/template/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 42f21d8

Please sign in to comment.