1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 08:02:33 +03:00

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

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