From 40bb6efaa7865e6cebdf8aa00e6bd2a44b928a31 Mon Sep 17 00:00:00 2001 From: Ben Turrubiates Date: Sun, 14 Dec 2014 23:33:24 -0600 Subject: Run hooks on rcdn as indicated by the manpage - Make sure IFS in rcup and rcdn isn't left in an incorrect state when the output of lsrc is empty. - Add tests to check that hooks run on rcdn and rcup by default. --- bin/rcdn.in | 3 ++- bin/rcup.in | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/rcdn.in b/bin/rcdn.in index 90cfcd6..ae7aad8 100755 --- a/bin/rcdn.in +++ b/bin/rcdn.in @@ -31,7 +31,7 @@ handle_command_line() { local arg_tags= local verbosity=0 local version=0 - local run_hooks=0 + local run_hooks=1 local dotfiles_dirs= local files= local excludes= @@ -124,4 +124,5 @@ for dest_and_src in $dests_and_srcs; do remove_link "$dest" "$dest" "$sigil" done +IFS="$saved_ifs" run_hooks post down diff --git a/bin/rcup.in b/bin/rcup.in index e5c5cdb..f818258 100755 --- a/bin/rcup.in +++ b/bin/rcup.in @@ -302,4 +302,5 @@ for dest_and_src in $dests_and_srcs; do handle_file "$GENERATE" "$src" "$dest" "$sigil" done +IFS="$saved_ifs" run_hooks post up -- cgit v1.2.3