Skip to content

Commit

Permalink
DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rister committed Sep 3, 2024
1 parent 011085e commit 5795d57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/jqlib
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function jq_update() {
TMP_FILE=${FILE}.tmp

set -x
jq . ${FILE} >2
jq --indent 4 "$@" ${FILE} > ${TMP_FILE}
RC=$?

Expand All @@ -26,6 +27,7 @@ function jq_query() {
FILE=${1}; shift

set -x
jq . ${FILE} >2
jq -r "$@" ${FILE}
set +x
}

0 comments on commit 5795d57

Please sign in to comment.