Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
ba547ec3
Unverified
Commit
ba547ec3
authored
5 years ago
by
Patrick Cloke
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use BSD-compatible in-place editing for sed. (#6887)
parent
88d41e94
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/6887.misc
+1
-0
1 addition, 0 deletions
changelog.d/6887.misc
scripts-dev/config-lint.sh
+2
-1
2 additions, 1 deletion
scripts-dev/config-lint.sh
with
3 additions
and
1 deletion
changelog.d/6887.misc
0 → 100644
+
1
−
0
View file @
ba547ec3
Fix the use of sed in the linting scripts when using BSD sed.
This diff is collapsed.
Click to expand it.
scripts-dev/config-lint.sh
+
2
−
1
View file @
ba547ec3
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment