1
0

config-lint.sh 362 B

12345678910
  1. #!/bin/bash
  2. # Find linting errors in Synapse's default config file.
  3. # Exits with 0 if there are no problems, or another code otherwise.
  4. # Fix non-lowercase true/false values
  5. sed -i.bak -E "s/: +True/: true/g; s/: +False/: false/g;" docs/sample_config.yaml
  6. rm docs/sample_config.yaml.bak
  7. # Check if anything changed
  8. git diff --exit-code docs/sample_config.yaml