Skip to content

Commit

Permalink
fix: update sed in cleanup workflow with delete
Browse files Browse the repository at this point in the history
Update the sed command when deleting lines from the .pre-commit-config
file with the correct syntax.

Without adding `d` to the line number, the sed invocation fails with the
following error message:

`sed: -e expression #1, char 2: unknown command: `;'`
  • Loading branch information
ShahradR authored Dec 5, 2022
1 parent ab1a3e9 commit c4c3b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/template-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
rm -f .github/workflows/deploy-pages.yaml
rm -rf docs/
sed -i "/- scripts/d" .markdownlint.yaml
sed "9;19,25d" .pre-commit-config.yaml
sed "9d;19,25d" .pre-commit-config.yaml
- name: Remove project license file
run: |
Expand Down

0 comments on commit c4c3b40

Please sign in to comment.