This is an automated email from the ASF dual-hosted git repository.
zhangliang2022 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 15b5608c fix(runner): swallow the error form exec.Command.Run (#1974)
15b5608c is described below
commit 15b5608c2ae48f8782f640da96fe67863ee61fbc
Author: warrenchen <[email protected]>
AuthorDate: Tue May 24 13:34:13 2022 +0800
fix(runner): swallow the error form exec.Command.Run (#1974)
closes #1973
---
runner/directrun.go | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/runner/directrun.go b/runner/directrun.go
index 4a915cd5..cd08f45b 100644
--- a/runner/directrun.go
+++ b/runner/directrun.go
@@ -64,10 +64,8 @@ func DirectRun(cmd *cobra.Command, args []string, pluginTask
core.PluginTask, op
panic(err)
}
- err = exec.Command("stty", "-F", "/dev/tty", "cbreak", "min", "1").Run()
- if err != nil {
- panic(err)
- }
+ exec.Command("stty", "-F", "/dev/tty", "cbreak", "min", "1").Run()
+
ctx, cancel := context.WithCancel(context.Background())
go func() {
buf := make([]byte, 1)