diff options
author | Ben Turrubiates <ben@turrubiat.es> | 2014-12-14 23:33:24 -0600 |
---|---|---|
committer | Mike Burns <mike@mike-burns.com> | 2015-01-07 16:49:52 +0100 |
commit | 40bb6efaa7865e6cebdf8aa00e6bd2a44b928a31 (patch) | |
tree | 89d910e6624465cf89b42ce57daf23ee7f92d8ed /bin | |
parent | 366dd721483e6dd55e1da1ca7aa6caa3efc19261 (diff) |
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.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/rcdn.in | 3 | ||||
-rwxr-xr-x | bin/rcup.in | 1 |
2 files changed, 3 insertions, 1 deletions
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 |