fix: Try `jq -b` to preserve window output

This commit is contained in:
Ilya Kuznetsov 2025-01-20 16:30:31 +01:00
parent 44aba7e0e0
commit e4164c1776
No known key found for this signature in database
GPG Key ID: 91F3DDCF5D21CDDF
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ trace $CLI bundle validate -o json --var="cluster_key=mlops_stacks-cluster" | jq
trace errcode $CLI bundle validate -o json --var-file=var_files/normal.json --var="cluster_key=mlops_stacks-cluster" | jq $cluster_expr
# file not found
trace errcode $CLI bundle validate -o json --var-file=var_files/not_found.json 2> >(sed 's/\(Error: failed to read variables file: open var_files\/not_found.json:\).*/\1<stripped>/' >&2) | jq $cluster_expr
trace errcode $CLI bundle validate -o json --var-file=var_files/not_found.json 2> >(sed 's/\(Error: failed to read variables file: open var_files\/not_found.json:\).*/\1<stripped>/' >&2) | jq -b $cluster_expr
# file cannot be parsed
trace errcode $CLI bundle validate -o json --var-file=var_files/invalid_json.json | jq $cluster_expr