summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar patrick brisbin <pbrisbin@gmail.com>2014-03-06 18:42:26 -0500
committerGravatar patrick brisbin <pbrisbin@gmail.com>2014-03-06 18:42:26 -0500
commitae23ec55b2f6dfa8b8b54dd771c6392fc38698b8 (patch)
treec5fa8d8c11de90dfec516dfdd024f58f01ade1c2
parent1be0b88906d910a0aa449ba2b151107d50986a2d (diff)
Fix bad merge in run_hooks
It's likely that while shuffling commits for the quoting of "$@" issue, some lines were kept from both that branch and master resulting in an invalid state.
-rw-r--r--share/rcm.sh.in7
1 files changed, 1 insertions, 6 deletions
diff --git a/share/rcm.sh.in b/share/rcm.sh.in
index 13120f7..bccc0a9 100644
--- a/share/rcm.sh.in
+++ b/share/rcm.sh.in
@@ -107,12 +107,7 @@ run_hooks() {
$DEBUG " with DOTFILES_DIRS: $DOTFILES_DIRS"
local when="$1"
local direction="$2"
- local hook_file="$dotfiles_dir/hooks/$when-$direction"
-
- if [ ! -e "$hook_file" ]; then
- $DEBUG "no $when-$direction hook file, skipping"
- return 1
- fi
+ local hook_file
if [ $RUN_HOOKS -eq 1 ]; then
for dotfiles_dir in $DOTFILES_DIRS; do