Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Use BSD-compatible in-place editing for sed. (#6887)
Browse files Browse the repository at this point in the history
* commit 'ba547ec3a':
  Use BSD-compatible in-place editing for sed. (#6887)
  • Loading branch information
anoadragon453 committed Mar 23, 2020
2 parents 9f796b3 + ba547ec commit 5e02ad6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/6887.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the use of sed in the linting scripts when using BSD sed.
3 changes: 2 additions & 1 deletion scripts-dev/config-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 comments on commit 5e02ad6

Please sign in to comment.