We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fb033b commit 43862adCopy full SHA for 43862ad
cmd_store_secret.go
@@ -3,6 +3,7 @@ package main
3
import (
4
"bufio"
5
"fmt"
6
+ "io"
7
"os"
8
"path/filepath"
9
@@ -83,7 +84,7 @@ func (x *storeSecretCommand) Execute(args []string) error {
83
84
default:
85
log("Reading secret from stdin")
86
secret, err := bufio.NewReader(os.Stdin).ReadString('\n')
- if err != nil {
87
+ if err != nil && err != io.EOF {
88
return fmt.Errorf("error reading secret from stdin: %v",
89
err)
90
}
0 commit comments