From 9afa0ed288ef5f151b16aeb5d2b634f037f61ce5 Mon Sep 17 00:00:00 2001 From: Arkadiusz Drabczyk Date: Tue, 25 Jun 2024 20:23:38 +0200 Subject: [PATCH] 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 {} \; --- Makefile | 2 +- scripts/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 76a4e8e..f1873ed 100644 --- a/Makefile +++ b/Makefile @@ -1 +1 @@ -# note: call scripts from /scripts \ No newline at end of file +# note: call scripts from /scripts diff --git a/scripts/README.md b/scripts/README.md index edb724e..2f8a654 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -8,4 +8,4 @@ Examples: * https://github.com/kubernetes/helm/tree/master/scripts * https://github.com/cockroachdb/cockroach/tree/master/scripts -* https://github.com/hashicorp/terraform/tree/master/scripts \ No newline at end of file +* https://github.com/hashicorp/terraform/tree/master/scripts