Skip to content

Commit

Permalink
fix help text when in a container (#3082)
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Jun 26, 2023
1 parent 885086c commit 412a096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cosign/cli/templates/term/term_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func GetWordWrapperLimit() (uint, error) {
stdout := os.Stdout
fd := stdout.Fd()
if !term.IsTerminal(fd) {
return 0, errors.New("file descriptor is not a terminal")
return 0, nil
}
terminalSize := GetSize(fd)
if terminalSize == nil {
Expand Down

0 comments on commit 412a096

Please sign in to comment.