From 9f7681ef8581a3c20d0bf05ebfe9b36f1bd8acb2 Mon Sep 17 00:00:00 2001 From: Andy Augustin Date: Sun, 16 Jun 2024 13:45:33 +0200 Subject: [PATCH] fix(#536): :bug: issue with comments within .templatesyncignore 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 c7b1faae..1b6280e4 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