File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @repo/tools ' : patch
3+ ---
4+
5+ chore: pipe output to stderr
Original file line number Diff line number Diff line change @@ -40,14 +40,14 @@ type Mode = 'write' | 'diff'
4040
4141async function runShfmt ( mode : Mode ) {
4242 await Promise . all ( [
43- $ `rg --files-with-matches '^#!.*\\b(sh|bash|zsh|fish|dash|ksh|csh)\\b' -g '!*.*' .` . pipe (
44- $ `xargs shfmt --case-indent ${ `--${ mode } ` } `
45- ) ,
43+ $ `rg --files-with-matches '^#!.*\\b(sh|bash|zsh|fish|dash|ksh|csh)\\b' -g '!*.*' .`
44+ . pipe ( $ `xargs shfmt --case-indent ${ `--${ mode } ` } ` )
45+ . pipe ( process . stderr ) ,
4646 $ ( {
4747 nothrow : true , // may not be any .sh files
48- } ) `rg --files-with-matches '^#!.*\\b(sh|bash|zsh|fish|dash|ksh|csh)\\b' -g '*.sh' .` . pipe (
49- $ `xargs shfmt --case-indent ${ `--${ mode } ` } `
50- ) ,
48+ } ) `rg --files-with-matches '^#!.*\\b(sh|bash|zsh|fish|dash|ksh|csh)\\b' -g '*.sh' .`
49+ . pipe ( $ `xargs shfmt --case-indent ${ `--${ mode } ` } ` )
50+ . pipe ( process . stderr ) ,
5151 ] )
5252}
5353
You can’t perform that action at this time.
0 commit comments