Skip to content

Commit

Permalink
fix(c): wrong exit code with -q option 🐞
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Sep 19, 2023
1 parent 7662844 commit e8b2cd0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/c
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,11 @@ copy() {
catThenCopy() {
local content
content="$(cat)"
{
if $keep_eol; then
printf '%s\n' "$content"
else
printf %s "$content"
$keep_eol && echo
} | copy
fi | copy
}

teeAndCopy() {
Expand Down

0 comments on commit e8b2cd0

Please sign in to comment.