summaryrefslogtreecommitdiff
path: root/share/rcm.sh.in
diff options
context:
space:
mode:
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 c7a3dfb..ed5d6f9 100644
--- a/share/rcm.sh.in
+++ b/share/rcm.sh.in
@@ -130,7 +130,7 @@ run_hooks() {
# The former is however a bit better when it comes to security. On the other hand
# running these hooks imply some level of trust; surely one doesn't clone somebody
# else's dotfiles repository without reviewing the hooks before doing an `rcup`?
- find "$hook_file" -type f \( \( -user $USER -perm -100 \) -o -perm -001 \) \
+ find "$hook_file" -type f \( \( -user $LOGNAME -perm -100 \) -o -perm -001 \) \
-exec \
sh -c 'cd "`dirname $1`" && ./"`basename $1`"' arg0 '{}' \
\;