Skip to content

Commit

Permalink
Merge pull request #7 from guggero/stdin-eof
Browse files Browse the repository at this point in the history
store-secret: read up to EOF from stdin
  • Loading branch information
guggero authored Mar 22, 2022
2 parents 9fb033b + a79e5f9 commit f1fc649
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd_store_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"bufio"
"fmt"
"io"
"os"
"path/filepath"

Expand Down Expand Up @@ -83,7 +84,7 @@ func (x *storeSecretCommand) Execute(args []string) error {
default:
log("Reading secret from stdin")
secret, err := bufio.NewReader(os.Stdin).ReadString('\n')
if err != nil {
if err != nil && err != io.EOF {
return fmt.Errorf("error reading secret from stdin: %v",
err)
}
Expand Down
2 changes: 1 addition & 1 deletion dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG GO_VERSION=1.17.6
ARG BASE_IMAGE=lightninglabs/lnd
ARG BASE_IMAGE_VERSION=0.14.2-beta
ARG BASE_IMAGE_VERSION=v0.14.2-beta

FROM golang:${GO_VERSION}-alpine as builder

Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const (
AppMinor uint = 1

// AppPatch defines the application patch for this binary.
AppPatch uint = 2
AppPatch uint = 3

// AppPreRelease MUST only contain characters from semanticAlphabet
// per the semantic versioning spec.
Expand Down

0 comments on commit f1fc649

Please sign in to comment.