From 9e7e9d7b12129d8e0917973c35a1ff7c43704764 Mon Sep 17 00:00:00 2001 From: Soispha Date: Tue, 26 Mar 2024 20:08:12 +0100 Subject: [PATCH] fix(scripts/renew_copyright_header): Add support for gitignore files --- scripts/renew_copyright_header.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/renew_copyright_header.sh b/scripts/renew_copyright_header.sh index 4ee5fae..0858b93 100755 --- a/scripts/renew_copyright_header.sh +++ b/scripts/renew_copyright_header.sh @@ -20,7 +20,7 @@ # and the Lesser GNU General Public License along with this program. # If not, see . -TEMPLATE_LINE_LENGHT=20 +TEMPLATE_LINE_LENGHT=21 remove() { extension="$1" file="$2" @@ -31,7 +31,7 @@ remove() { # normal '#' comments (these are 19 lines long) # the `config` file is the cargo config at `./example/main/.cargo/config`, which is # toml - "Makefile" | "toml" | "envrc" | "config" | "yml") + "Makefile" | "toml" | "envrc" | "config" | "yml" | "gitignore") sed --in-place "1,${TEMPLATE_LINE_LENGHT}d" "$file" ;; # normal '/* ... */' like comments (these are 21 lines long--'#' + 2)