diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index 610381d3..85be72be 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -46,9 +46,9 @@ jobs: pip3 install alt-profanity-check chmod +x ./scripts/checkProfanity.py chmod +x ./scripts/generateFilelist.sh - array=(${{needs.string-change-verification.outputs.files}}) - if [ "${array[@]}" -ne 1 ]; then - echo "Only pass the amount of commits and one translation file! You passed: ${array[@]}" + SIZE=$(awk '{print NF}' <<< "${{needs.string-change-verification.outputs.files}}") + if [ "$SIZE" -ne 1 ]; then + echo "Only pass the amount of commits and one translation file! You passed: $SIZE" fi TRANSLATIONS=$(./scripts/generateFilelist.sh ${{ github.event.pull_request.commits }} ${{needs.string-change-verification.outputs.files}}) echo "TRANSLATIONS=$TRANSLATIONS" >> $GITHUB_OUTPUT