summaryrefslogtreecommitdiff
path: root/share/rcm.sh.in
diff options
context:
space:
mode:
authorGravatar Eric Collins <eric@tabfugni.cc>2018-07-07 05:57:33 -0400
committerGravatar Mike Burns <mburns@thoughtbot.com>2018-07-13 14:12:46 -0400
commit00cb50b23f33ab88bc958b1cf9f68ef4da232589 (patch)
treec9fbac1a40ac6fa2789e5fbd96783688f411ce3c /share/rcm.sh.in
parent0796c890655cb84245e1ee7ccec4da1103d32584 (diff)
Expand DOTFILE_DIR tilde in hooks
Still does not expand in every usecase, possibly does not expand in all DOTFILE_DIRS usecases.
Diffstat (limited to 'share/rcm.sh.in')
-rw-r--r--share/rcm.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/rcm.sh.in b/share/rcm.sh.in
index a1c9f40..a2b4492 100644
--- a/share/rcm.sh.in
+++ b/share/rcm.sh.in
@@ -121,6 +121,8 @@ run_hooks() {
if [ $RUN_HOOKS -eq 1 ]; then
for dotfiles_dir in $DOTFILES_DIRS; do
+ dotfiles_dir=$(eval echo "$dotfiles_dir")
+
hook_file="$dotfiles_dir/hooks/$when-$direction"
if [ -e "$hook_file" ]; then