Skip to content

Commit

Permalink
Make sed command compatible with gsed and bsdsed
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbe7a committed Jan 30, 2024
1 parent 961a48c commit e05c23e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

This is a template for our pre-commit mirrors.

> [!WARNING]
> This template expects `sed` in your $PATH to be GNU sed. If you are on macOS, you can ensure this by running inside a conda environment with `sed` installed.
To create a new mirror, you can run the following command

```bash
Expand Down
2 changes: 1 addition & 1 deletion copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ description:
default: This hook runs {{ tool }}.

_tasks:
- sed -i "s/TOOL_VERSION/$(micromamba search -c conda-forge {{ conda_package }} --json | jq -r '.result.pkgs[0].version')/g" environment.yml
- sed -i.bak "s/TOOL_VERSION/$(micromamba search -c conda-forge {{ conda_package }} --json | jq -r '.result.pkgs[0].version')/g" environment.yml
- git init
- git branch -M main

0 comments on commit e05c23e

Please sign in to comment.