Skip to content

Commit 05ca50f

Browse files
committed
Update quotes styles in shell script
Using double quotes can be problematic when backslashes are used in the string. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent c293cdd commit 05ca50f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cookiecutter/{{cookiecutter.github_repo_name}}/CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,14 @@ Here is an example of upgrading the `frequenz-api-common` dependency to version
7575
`v0.2.0`:
7676
```sh
7777
ver="0.2.0"
78+
ver_minor=$(echo $ver | cut -d. -f1,2)
7879

7980
cd submodules/frequenz-api-common
8081
git remote update
8182
git checkout v${ver}
8283
cd -
8384

84-
sed s/"frequenz-api-common == [0-9]\.[0-9]\.[0-9]"/"frequenz-api-common == ${ver}"/g -i pyproject.toml
85+
sed 's/frequenz-api-common == [0-9]\.[0-9]\.[0-9]/frequenz-api-common == '"${ver}/" -i pyproject.toml
8586
```
8687
{%- endif %}
8788

0 commit comments

Comments
 (0)