Skip to content

Commit

Permalink
fix: add newline when appending to gitignore (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop authored Sep 17, 2023
1 parent d12173a commit 47b1b0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/project/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ func initInit(
}
defer gitingoref.Close()

if err := system.AddToGitignore(".secrets"); err != nil {
if err := system.AddToGitignore(".secrets\n"); err != nil {
return fmt.Errorf("failed to add secrets to .gitignore: %w", err)
}

if err := system.AddToGitignore(".nhost"); err != nil {
if err := system.AddToGitignore(".nhost\n"); err != nil {
return fmt.Errorf("failed to add .nhost to .gitignore: %w", err)
}

Expand Down

0 comments on commit 47b1b0f

Please sign in to comment.