Skip to content

Commit

Permalink
fix: duplicated output when --raw
Browse files Browse the repository at this point in the history
closes #354
  • Loading branch information
caarlos0 committed Jan 14, 2025
1 parent 6349292 commit 83c3cf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ var (
return deleteConversationOlderThan()
}

if isOutputTTY() {
// raw mode already prints the output, no need to print it again
if isOutputTTY() && !config.Raw {
switch {
case mods.glamOutput != "":
fmt.Print(mods.glamOutput)
Expand Down

0 comments on commit 83c3cf3

Please sign in to comment.