Added NOHEAD=1 behavior to hide header from output

This commit is contained in:
Lockszmith 2023-07-12 00:53:28 -04:00
parent fc0115f8cb
commit 40c0da1cf2
1 changed files with 2 additions and 0 deletions

View File

@ -137,6 +137,8 @@ JQ_COLS_REGEX="$( <<<"$JQ_COLS" \
jq -r '. | map ( ".\(.)" ) | join(",")' jq -r '. | map ( ".\(.)" ) | join(",")'
)" )"
[[ -z "$NOHEAD" ]] || JQ_COLS=
jqcode=' jqcode='
['"${JQ_COLS^^}"'] + [.[] | ['"${JQ_COLS^^}"'] + [.[] |
['"$JQ_COLS_REGEX"'] ['"$JQ_COLS_REGEX"']