Skip to content

Commit

Permalink
fix(#536): 🐛 issue with comments within .templatesyncignore
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Augustin <dev@andreas-augustin.org>
  • Loading branch information
AndreasAugustin committed Jun 16, 2024
1 parent ab9498f commit 9f7681e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sync_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f7681e

Please sign in to comment.