From 4833e4cf2027561a01bbb2821dfced39604b6ce7 Mon Sep 17 00:00:00 2001 From: Wei Shen Date: Sun, 16 Jul 2023 10:56:10 +0800 Subject: [PATCH] fix the hung up bug of --dry-run which was introduced in v0.5.1. --- CHANGES.md => CHANGELOG.md | 2 ++ helper.go | 2 +- process/process.go | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) rename CHANGES.md => CHANGELOG.md (98%) diff --git a/CHANGES.md b/CHANGELOG.md similarity index 98% rename from CHANGES.md rename to CHANGELOG.md index f808fc6..42e4e52 100644 --- a/CHANGES.md +++ b/CHANGELOG.md @@ -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) diff --git a/helper.go b/helper.go index c0f56bc..ced12b5 100644 --- a/helper.go +++ b/helper.go @@ -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 == "-" diff --git a/process/process.go b/process/process.go index 2fae254..5317855 100644 --- a/process/process.go +++ b/process/process.go @@ -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 }