Small bugfix with stdin input

dev
Ice3man543 2020-04-26 07:00:28 +05:30
parent c3fcd768a5
commit b7736b4ac7
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ func New(options *Options) (*Runner, error) {
if err != nil {
return nil, err
}
if _, err = io.Copy(os.Stdin, tempInput); err != nil {
if _, err := io.Copy(tempInput, os.Stdin); err != nil {
return nil, err
}
runner.tempFile = tempInput.Name()