Skip to content

Commit ba30673

Browse files
badevossubeshb1
andauthored
use redirection properly
Co-authored-by: Subesh <[email protected]>
1 parent 0b6e17b commit ba30673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ has_key() {
386386

387387
check_eq() {
388388
tput cuf 6
389-
local type=$(jq -r -c --argjson a "$1" -n '$a|type' 2&>/dev/null)
389+
local type=$(jq -r -c --argjson a "$1" -n '$a|type' 2>/dev/null)
390390
local check
391391
if [[ $type == "object" || $type == "array" ]]; then
392392
check=$(jq -c --argjson a "$1" --argjson b "$2" -n 'def post_recurse(f): def r: (f | select(. != null) | r), .; r; def post_recurse: post_recurse(.[]?); ($a | (post_recurse | arrays) |= sort) as $a | ($b | (post_recurse | arrays) |= sort) as $b | $a == $b')

0 commit comments

Comments
 (0)