Use correct language code from sources. (#8374)
This commit is contained in:
parent
687ddea5fc
commit
23a64412ed
|
@ -32,6 +32,17 @@ for APK in ${APKS[@]}; do
|
||||||
|
|
||||||
SOURCE_INFO=$(jq ".[\"$PKGNAME\"]" < ../output.json)
|
SOURCE_INFO=$(jq ".[\"$PKGNAME\"]" < ../output.json)
|
||||||
|
|
||||||
|
# Fixes the language code without needing to update the packages.
|
||||||
|
SOURCE_LEN=$(echo $SOURCE_INFO | jq length)
|
||||||
|
|
||||||
|
if [ $SOURCE_LEN = "1" ]; then
|
||||||
|
SOURCE_LANG=$(echo $SOURCE_INFO | jq -r '.[0].lang')
|
||||||
|
|
||||||
|
if [ $SOURCE_LANG != $LANG ] && [ $SOURCE_LANG != "all" ] && [ $SOURCE_LANG != "other" ]; then
|
||||||
|
LANG=$SOURCE_LANG
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
jq -n \
|
jq -n \
|
||||||
--arg name "$LABEL" \
|
--arg name "$LABEL" \
|
||||||
--arg pkg "$PKGNAME" \
|
--arg pkg "$PKGNAME" \
|
||||||
|
|
Loading…
Reference in New Issue