Add missing newlines

On *nix systems it's a common convention to end a file with an empty
newline. It also helps if the newline is present if user wants to
simply cat a file in the command line.

I used the following one-liner to automatically add newlines in all
files that don't have it:

    $ find . -path ./.git -prune -o -type f -a ! -name .keep -exec sh -c '[[ $(tail -c1 "$1" | wc -l) -gt 0 ]] || echo >> "$1"' sh {} \;
This commit is contained in:
Arkadiusz Drabczyk 2024-06-25 20:23:38 +02:00
parent 17ea4464cb
commit 9afa0ed288
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
# note: call scripts from /scripts # note: call scripts from /scripts

View File

@ -8,4 +8,4 @@ Examples:
* https://github.com/kubernetes/helm/tree/master/scripts * https://github.com/kubernetes/helm/tree/master/scripts
* https://github.com/cockroachdb/cockroach/tree/master/scripts * https://github.com/cockroachdb/cockroach/tree/master/scripts
* https://github.com/hashicorp/terraform/tree/master/scripts * https://github.com/hashicorp/terraform/tree/master/scripts