if sending with pipes, force yes

This commit is contained in:
Zack Scholl 2018-06-24 07:44:25 -07:00
parent ba3accb9d7
commit 97f99e60f2
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ func NewConnection(config *AppConfig) (*Connection, error) {
if len(config.File) > 0 {
config.File = filepath.Clean(config.File)
if config.File == "stdin" {
c.Yes = true
f, err := ioutil.TempFile(".", "croc-stdin-")
if err != nil {
return c, err