Skip to content
Snippets Groups Projects
Unverified Commit ba547ec3 authored by Patrick Cloke's avatar Patrick Cloke Committed by GitHub
Browse files

Use BSD-compatible in-place editing for sed. (#6887)

parent 88d41e94
No related branches found
No related tags found
No related merge requests found
Fix the use of sed in the linting scripts when using BSD sed.
......@@ -3,7 +3,8 @@
# Exits with 0 if there are no problems, or another code otherwise.
# Fix non-lowercase true/false values
sed -i -E "s/: +True/: true/g; s/: +False/: false/g;" docs/sample_config.yaml
sed -i.bak -E "s/: +True/: true/g; s/: +False/: false/g;" docs/sample_config.yaml
rm docs/sample_config.yaml.bak
# Check if anything changed
git diff --exit-code docs/sample_config.yaml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment