diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 18:26:04 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 18:26:32 +1200 |
commit | 199fbd2fe61e9a4211ae7f8059975d8f77081c20 (patch) | |
tree | d210504c67d9f2d66a38f28d20770c7658ba1fb5 /Makefile | |
parent | Correct name of message filter hook (diff) | |
download | dotfiles-199fbd2fe61e9a4211ae7f8059975d8f77081c20.tar.gz dotfiles-199fbd2fe61e9a4211ae7f8059975d8f77081c20.zip |
Exclude files with extension from Git hooks
Possibly a little crude, but there are no filenames that should be
installed with periods in their names yet, so it'll do for now.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -426,7 +426,7 @@ install-git: git/gitconfig $(GIT_TEMPLATE_HOOKS) -type d -exec sh -c 'mkdir -p -- \ $(HOME)/.git-template"$${1#git/template}"' \ _ {} \; \ - -o ! -name '*.sh' -exec sh -c 'cp -p -- "$$1" \ + -o ! -name '*.*' -exec sh -c 'cp -p -- "$$1" \ $(HOME)/.git-template"$${1#git/template}"' \ _ {} \; |