mirror of
https://gitlab.com/TECHNOFAB/soonix.git
synced 2025-12-11 22:00:05 +01:00
fix(gitignore): correctly grep for file with / prefix
This commit is contained in:
parent
ed75ed6695
commit
1433186d97
2 changed files with 2 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -2,5 +2,5 @@
|
|||
result
|
||||
|
||||
# soonix
|
||||
test.yaml
|
||||
/test.yaml
|
||||
# end soonix
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ in {
|
|||
fi
|
||||
|
||||
# Check if file is already in gitignore
|
||||
if ! grep -Fxq "$file" "$gitignore"; then
|
||||
if ! grep -Fxq "/$file" "$gitignore"; then
|
||||
# Add sentinel comments if not present
|
||||
if ! grep -q "# soonix" "$gitignore"; then
|
||||
echo "" >> "$gitignore"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue