From ae23ec55b2f6dfa8b8b54dd771c6392fc38698b8 Mon Sep 17 00:00:00 2001 From: patrick brisbin Date: Thu, 6 Mar 2014 18:42:26 -0500 Subject: 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. --- share/rcm.sh.in | 7 +------ 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3