Skip to content

Commit

Permalink
Fix shellcheck false positive (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
reegnz authored Nov 10, 2023
1 parent ade894f commit 9cf2dbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/jq-repl-preview
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ red() {

# prints preview query result to stdout, colorizes stderr to red
do_query() {
# JQ_REPL_ARGS has to be unquoted so it's passed as cli args to jq so
# word splitting is desirable here
# shellcheck disable=SC2086
$JQ_REPL_JQ --color-output ${JQ_REPL_ARGS:-} "$query" "$input_file"
} 2> >(red)

Expand Down

0 comments on commit 9cf2dbc

Please sign in to comment.