summaryrefslogtreecommitdiff
path: root/share/rcm.sh.in
diff options
context:
space:
mode:
authorGravatar Christian Höltje <docwhat@gerf.org>2014-04-22 22:46:26 -0400
committerGravatar Christian Höltje <docwhat@gerf.org>2014-04-22 22:46:26 -0400
commit509a38796accc69c2161e8caa1ba8f79203fd541 (patch)
tree7f659bb508a87afd38c5b19739a66e2a35d10fb4 /share/rcm.sh.in
parenta5344a3940f292d8d4f8907f92a54bf726b87e44 (diff)
Partial fix for finding hook executables
This allows, at least, more executables to be picked up. It doesn't pick up group-executable scripts and ignore xattr files but it should be better than what was there before. Closes #80
Diffstat (limited to 'share/rcm.sh.in')
-rw-r--r--share/rcm.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/rcm.sh.in b/share/rcm.sh.in
index 6d8a7e0..a71316c 100644
--- a/share/rcm.sh.in
+++ b/share/rcm.sh.in
@@ -125,7 +125,7 @@ run_hooks() {
find_opts=-print
fi
- find "$hook_file" -type f -perm -111 $find_opts -exec {} \;
+ find "$hook_file" -type f \( \( -user $USER -perm -100 \) -o -perm -001 \) $find_opts -exec {} \;
else
$DEBUG "no $when-$direction hook present for $dotfiles_dir, skipping"
fi