Skip to content

Commit

Permalink
fix the hung up bug of --dry-run which was introduced in v0.5.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
shenwei356 committed Jul 16, 2023
1 parent d0b99cb commit 4833e4c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- rush v0.5.2
- fix the hung up bug of `--dry-run` which was introduced in v0.5.1.
- rush v0.5.1
- graceful handling of Ctrl+C.
- `-c`: fix a bug -- some commands are recorded even after unsuccessfully running or interrupting with Ctrl+C. [#47](https://github.com/shenwei356/rush/issues/47)
Expand Down
2 changes: 1 addition & 1 deletion helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
)

// VERSION of this package
const VERSION = "0.5.1"
const VERSION = "0.5.2"

func isStdin(file string) bool {
return file == "-"
Expand Down
1 change: 1 addition & 0 deletions process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func (c *Command) Run(opts *Options, tryNumber int) (chan string, error) {
ch <- c.Cmd + "\n"
close(ch)
c.finishSendOutput = true
close(c.Executed)
return ch, nil
}

Expand Down

0 comments on commit 4833e4c

Please sign in to comment.