Skip to content

Commit aba0971

Browse files
fix(#536): 🐛 issue with comments within .templatesyncignore (#538)
Signed-off-by: Andy Augustin <dev@andreas-augustin.org>
1 parent 525c669 commit aba0971

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/sync_template.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ function handle_templatesyncignore() {
377377
# -s is true if the file contains whitespaces
378378
if [ -s "${template_sync_ignore_file_path}" ]; then
379379
debug "unstage files from template sync ignore ${template_sync_ignore_file_path}"
380-
< "${template_sync_ignore_file_path}" awk NF | xargs -r git reset --
380+
sed '/^[[:blank:]]*#/d;s/#.*//' "${template_sync_ignore_file_path}" | awk NF | xargs -r git reset --
381381

382382
debug "clean untracked files"
383383
git clean -df

0 commit comments

Comments
 (0)