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