Exclude incomplete lang files from sort and check

This will exempt them from the future pipeline tests
This commit is contained in:
Zedifus 2023-10-17 18:41:43 +01:00
parent 06898ab37a
commit 24d712e30e
3 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ get_keys "${DIR}/en_EN.json" | sort > "${ref_keys}"
# Iterate over each .json file in the directory
for file in "${DIR}"/*.json; do
# Check if file is a regular file and not en_EN.json
if [[ -f "${file}" && "${file}" != "${DIR}/en_EN.json" ]]; then
# Check if file is a regular file and not en_EN.json, and does not contain "_incomplete" in its name
if [[ -f "${file}" && "${file}" != "${DIR}/en_EN.json" && ! "${file}" =~ _incomplete ]]; then
# Get keys and subkeys from the current file
current_keys=$(mktemp)