From 509a38796accc69c2161e8caa1ba8f79203fd541 Mon Sep 17 00:00:00 2001 From: Christian HoĢˆltje Date: Tue, 22 Apr 2014 22:46:26 -0400 Subject: 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 --- share/rcm.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/rcm.sh.in') 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 -- cgit v1.2.3