Skip to content

Commit 4833e4c

Browse files
committed
fix the hung up bug of --dry-run which was introduced in v0.5.1.
1 parent d0b99cb commit 4833e4c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CHANGES.md renamed to CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
- rush v0.5.2
2+
- fix the hung up bug of `--dry-run` which was introduced in v0.5.1.
13
- rush v0.5.1
24
- graceful handling of Ctrl+C.
35
- `-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)

helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
)
3131

3232
// VERSION of this package
33-
const VERSION = "0.5.1"
33+
const VERSION = "0.5.2"
3434

3535
func isStdin(file string) bool {
3636
return file == "-"

process/process.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ func (c *Command) Run(opts *Options, tryNumber int) (chan string, error) {
123123
ch <- c.Cmd + "\n"
124124
close(ch)
125125
c.finishSendOutput = true
126+
close(c.Executed)
126127
return ch, nil
127128
}
128129

0 commit comments

Comments
 (0)