Skip to content

Commit

Permalink
fix(print): Write directory to stdout if not using a terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
dustmop committed Jul 7, 2020
1 parent 151fcb1 commit 3575349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func printlnStringItems(w io.Writer, items []string) (err error) {
}

func printToPager(w io.Writer, buf *bytes.Buffer) (err error) {
if noPrompt {
if !stdoutIsTerminal() || noPrompt {
fmt.Fprintln(w, buf.String())
return
}
Expand Down

0 comments on commit 3575349

Please sign in to comment.