mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
if sending with pipes, force yes
This commit is contained in:
parent
ba3accb9d7
commit
97f99e60f2
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue