We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 223c246 commit 2084e0dCopy full SHA for 2084e0d
bin/jq-paths
@@ -1,7 +1,10 @@
1
#!/bin/sh
2
# path logic inspired by https://github.com/stedolan/jq/issues/243
3
JQ_REPL_JQ="${JQ_REPL_JQ:-jq}"
4
-$JQ_REPL_JQ -r '
+# 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 '
8
[
9
path(..) |
10
map(
0 commit comments