Skip to content

Commit

Permalink
Update cmd/util.go
Browse files Browse the repository at this point in the history
Co-authored-by: Takafumi Miyanaga <[email protected]>
  • Loading branch information
jmonfar and orangekame3 authored Dec 23, 2024
1 parent 0ce9cda commit 9945cd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ func slice2String(slice []string) string {

func genTargetCmd(cmd *cobra.Command, action, target string) bytes.Buffer {
var buf bytes.Buffer
buf.WriteString("terraform " + action)
executable, _ := cmd.Flags().GetString("executable")
buf.WriteString(executable + " " + action)
target = strings.TrimSpace(target)
if strings.HasPrefix(target, "{") && strings.HasSuffix(target, "}") {
// Handle matrix of targets
Expand Down

0 comments on commit 9945cd3

Please sign in to comment.