Skip to content

Commit 2084e0d

Browse files
authored
Add JQ_PATHS_ARGS to jq-paths (#34)
LGTM!
1 parent 223c246 commit 2084e0d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/jq-paths

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/bin/sh
22
# path logic inspired by https://github.com/stedolan/jq/issues/243
33
JQ_REPL_JQ="${JQ_REPL_JQ:-jq}"
4-
$JQ_REPL_JQ -r '
4+
# JQ_PATHS_ARGS has to be unquoted so it's passed as cli args to jq so
5+
# word splitting is desirable here
6+
# shellcheck disable=SC2086
7+
$JQ_REPL_JQ ${JQ_PATHS_ARGS:-} -r '
58
[
69
path(..) |
710
map(

0 commit comments

Comments
 (0)