From 22b140e74b466e7095864e75b7725bf17d07362d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20N=C3=BCsse?= Date: Sun, 28 Apr 2024 09:33:55 +0200 Subject: [PATCH] test --- .github/workflows/translations.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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