this should fix the incorrect gitignore entry check
This commit is contained in:
@@ -44,7 +44,7 @@ set_env_value() {
|
|||||||
add_to_gitignore() {
|
add_to_gitignore() {
|
||||||
local entry="$1"
|
local entry="$1"
|
||||||
if [ -f .gitignore ]; then
|
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 "$entry" >> .gitignore
|
||||||
echo -e "${BLUE}Added $entry to .gitignore${NC}"
|
echo -e "${BLUE}Added $entry to .gitignore${NC}"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user