File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ if ! [ -x "$(command -v jq)" ]; then
99 exit 1
1010fi
1111if ! [ -x " $( command -v yq) " ]; then
12- echo >&2 ' Error: jq is not installed.'
12+ echo >&2 ' Error: yq is not installed.'
1313 exit 1
1414fi
Original file line number Diff line number Diff line change @@ -19,6 +19,6 @@ OUTPUT_FILE=$2
1919# It will also remove duplicate keys that might be generated after this
2020# operation
2121yq '
22- with_entries(.key |= (. | sub("[\\w\\-_]*\\|", ""))) |
22+ with_entries(.key |= (. | sub("[\\w\\-_]*\\|"; ""))) |
2323 pick(keys | unique)
2424 ' " $INPUT_FILE " > " $OUTPUT_FILE "
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ if ! [ -x "$(command -v jq)" ]; then
99 exit 1
1010fi
1111if ! [ -x " $( command -v yq) " ]; then
12- echo >&2 ' Error: jq is not installed.'
12+ echo >&2 ' Error: yq is not installed.'
1313 exit 1
1414fi
1515
16- #
16+ #
1717# Helpers
1818#
1919
You can’t perform that action at this time.
0 commit comments