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:
parent
ba3accb9d7
commit
97f99e60f2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user