From 4ea2ac787c7f62d841c30634cc9ff4c43e0c1778 Mon Sep 17 00:00:00 2001 From: Leons Aleksandrovs Date: Fri, 20 Feb 2026 09:48:02 +0200 Subject: [PATCH] this should fix the incorrect gitignore entry check --- shared.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared.sh b/shared.sh index 8372d66..6f02e40 100644 --- a/shared.sh +++ b/shared.sh @@ -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