From aba0971640d113cd858cfbb6b9eb2f4c2de09049 Mon Sep 17 00:00:00 2001 From: andy Augustin Date: Wed, 19 Jun 2024 21:31:34 +0200 Subject: [PATCH] fix(#536): :bug: issue with comments within .templatesyncignore (#538) Signed-off-by: Andy Augustin --- src/sync_template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync_template.sh b/src/sync_template.sh index c7b1faa..1b6280e 100755 --- a/src/sync_template.sh +++ b/src/sync_template.sh @@ -377,7 +377,7 @@ function handle_templatesyncignore() { # -s is true if the file contains whitespaces if [ -s "${template_sync_ignore_file_path}" ]; then debug "unstage files from template sync ignore ${template_sync_ignore_file_path}" - < "${template_sync_ignore_file_path}" awk NF | xargs -r git reset -- + sed '/^[[:blank:]]*#/d;s/#.*//' "${template_sync_ignore_file_path}" | awk NF | xargs -r git reset -- debug "clean untracked files" git clean -df