Commit 07d928a4 authored by Steije van Schelt's avatar Steije van Schelt
Browse files

Make bash happy

parent 21eca613
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -30,13 +30,17 @@ check_json_format:
  stage: check
  script:
    - |
      INVALID_JSON_FILES=false
      find . -type f -name "*.json" -print0 | while IFS= read -r -d '' file; do
        if ! diff -q <(jq . "$file") "$file" >/dev/null 2>&1; then
          echo "❌ Unformatted JSON: $file"
          INVALID_JSON_FILES=true
        fi
      done
    - if [ "$INVALID_JSON_FILES" = true ]; then echo "Some JSON files are not formatted. Please run jq to fix them.";
      if $INVALID_JSON_FILES; then
        echo "Some JSON files are not formatted. Please run jq to fix them."
        exit 1
      fi

process_asn:
  image: "forge.etsi.org:5050/li/schemas-definitions/asn1test:latest"