Merge pull request #4307 from imroc/master

Support Stdin when using downloaders of plugin
pull/4313/head
Matthew Fisher 6 years ago committed by GitHub
commit 457f68d3d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -69,6 +69,7 @@ func (p *pluginGetter) Get(href string) (*bytes.Buffer, error) {
buf := bytes.NewBuffer(nil) buf := bytes.NewBuffer(nil)
prog.Stdout = buf prog.Stdout = buf
prog.Stderr = os.Stderr prog.Stderr = os.Stderr
prog.Stdin = os.Stdin
if err := prog.Run(); err != nil { if err := prog.Run(); err != nil {
if eerr, ok := err.(*exec.ExitError); ok { if eerr, ok := err.(*exec.ExitError); ok {
os.Stderr.Write(eerr.Stderr) os.Stderr.Write(eerr.Stderr)

Loading…
Cancel
Save