this should fix the incorrect gitignore entry check

This commit is contained in:
2026-02-20 09:48:02 +02:00
parent 3bb4323363
commit 4ea2ac787c

View File

@@ -44,7 +44,7 @@ set_env_value() {
add_to_gitignore() {
local entry="$1"
if [ -f .gitignore ]; then
if ! grep -q "^${entry}$" .gitignore 2>/dev/null; then
if ! grep -q "${entry}" .gitignore 2>/dev/null; then
echo "$entry" >> .gitignore
echo -e "${BLUE}Added $entry to .gitignore${NC}"
else