Skip to content

Commit

Permalink
gitignore: Fix cross-platform compatibility for sed in-place editing
Browse files Browse the repository at this point in the history
- On macOS, `sed -i extension` requires a space between `-i` and the extension
  to perform in-place changes without creating a backup file.
- On Linux, `sed -i[extension]` or `--in-place[extension]` does not require a space,
  which makes it difficult to write a single command that works on both platforms.

As a result, the JSON backup file generated on macOS with the `-e` extension is ignored.
  • Loading branch information
praveenkumar committed Jan 3, 2025
1 parent 5c6743b commit 5e561ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/docs/package-lock.json
/release/
/release-info.json
/release-info.json-e
*.crcbundle
/tmp-embed/
/RPMS/
Expand Down

0 comments on commit 5e561ad

Please sign in to comment.