Skip to content

Commit eb418d6

Browse files
fix error message
1 parent 113641c commit eb418d6

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/_common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ if ! [ -x "$(command -v jq)" ]; then
99
exit 1
1010
fi
1111
if ! [ -x "$(command -v yq)" ]; then
12-
echo >&2 'Error: jq is not installed.'
12+
echo >&2 'Error: yq is not installed.'
1313
exit 1
1414
fi

scripts/simplify-filter-file.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ OUTPUT_FILE=$2
1919
# It will also remove duplicate keys that might be generated after this
2020
# operation
2121
yq '
22-
with_entries(.key |= (. | sub("[\\w\\-_]*\\|", ""))) |
22+
with_entries(.key |= (. | sub("[\\w\\-_]*\\|"; ""))) |
2323
pick(keys | unique)
2424
' "$INPUT_FILE" > "$OUTPUT_FILE"

tests/run-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ if ! [ -x "$(command -v jq)" ]; then
99
exit 1
1010
fi
1111
if ! [ -x "$(command -v yq)" ]; then
12-
echo >&2 'Error: jq is not installed.'
12+
echo >&2 'Error: yq is not installed.'
1313
exit 1
1414
fi
1515

16-
#
16+
#
1717
# Helpers
1818
#
1919

0 commit comments

Comments
 (0)