MOBILE-3320 github: Fix lang check on test action

main
Pau Ferrer Ocaña 2021-05-21 11:27:46 +02:00
parent fd6212ac3f
commit eff001f6bc
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ jobs:
fi
gulp
langcount=`jq -r '. | length' src/assets/lang/en.json`
freemiumcount=`jq 'keys' src/assets/lang/en.json | grep "freemium." | wc -l | xargs`
freemiumcount=`jq 'keys' src/assets/lang/en.json | grep "freemium\." | wc -l | xargs`
allcount=$(($langcount - $freemiumcount))
langindexcount=`jq -r '. | length' scripts/langindex.json`
if [ $allcount -ne $langindexcount ]; then
@ -32,7 +32,7 @@ jobs:
exit 1
fi
langkeys=`jq -r 'keys[]' src/assets/lang/en.json`
langkeys=`jq -r 'keys[]' src/assets/lang/en.json | grep -v "freemium\."`
langindex=`jq -r 'keys[]' scripts/langindex.json`
found=0
for i in $langkeys; do