Skip to content

Commit c037ec7

Browse files
committed
🐛 fix: use portable sed syntax for Linux compatibility
1 parent 102e1f1 commit c037ec7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ init: ## Initialize project (usage: make init name=my-project description="my de
4444
exit 1; \
4545
fi
4646
@echo "$(YELLOW)🚀 Initializing project $(name)...$(RESET)"
47-
@sed -i '' "s/name = \"python-template\"/name = \"$(name)\"/" pyproject.toml
48-
@sed -i '' "s/description = \"Add your description here\"/description = \"$(description)\"/" pyproject.toml
49-
@sed -i '' "s/# Python-Template/# $(name)/" README.md
50-
@sed -i '' "s/<b>Opinionated Python project stack. 🔋 Batteries included. <\/b>/<b>$(description)<\/b>/" README.md
47+
@sed -i.bak "s/name = \"python-template\"/name = \"$(name)\"/" pyproject.toml && rm pyproject.toml.bak
48+
@sed -i.bak "s/description = \"Add your description here\"/description = \"$(description)\"/" pyproject.toml && rm pyproject.toml.bak
49+
@sed -i.bak "s/# Python-Template/# $(name)/" README.md && rm README.md.bak
50+
@sed -i.bak "s/<b>Opinionated Python project stack. 🔋 Batteries included. <\/b>/<b>$(description)<\/b>/" README.md && rm README.md.bak
5151
@echo "$(GREEN)✅ Updated project name and description.$(RESET)"
5252

5353
banner: check_uv ## Generate project banner image

0 commit comments

Comments
 (0)