Skip to content

Commit

Permalink
Fix deploy action printing line-breaks incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
hmerritt committed Jul 5, 2021
1 parent 9a8c89b commit 7cf6441
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions command/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,11 @@ func (c *DeployCommand) Run(args []string) int {

// Check for any post-deploy 'Actions' scripts
if len(fsStructure.Actions) > 0 {
for i, fsAction := range fsStructure.Actions {
iRan := 0
for _, fsAction := range fsStructure.Actions {
if fsAction.CanRunOnOs() {
if i > 1 {
iRan++
if iRan > 1 {
c.UI.Output("")
}

Expand All @@ -143,7 +145,7 @@ func (c *DeployCommand) Run(args []string) int {
}

printCommand := func(s string) {
c.UI.Info(ui.WrapAtLength(fmt.Sprintf(" $ %s", s), 2))
c.UI.Info(ui.WrapAtLength(fmt.Sprintf(" $ %s", s), 4))
}

// Check if first item in fsAction is not a command
Expand Down
2 changes: 1 addition & 1 deletion version/version_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var (
GitCommit string
GitDescribe string

Version = "1.3.5"
Version = "1.3.6"
VersionPrerelease = ""
VersionMetadata = ""
)

0 comments on commit 7cf6441

Please sign in to comment.