summaryrefslogtreecommitdiff
path: root/test/rcrc-tilde.t
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 /test/rcrc-tilde.t
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 'test/rcrc-tilde.t')
-rw-r--r--test/rcrc-tilde.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rcrc-tilde.t b/test/rcrc-tilde.t
index b3f98c1..55ab37e 100644
--- a/test/rcrc-tilde.t
+++ b/test/rcrc-tilde.t
@@ -8,3 +8,11 @@ rcrc should accept a DOTFILES_DIR with a ~ instead of $HOME
$ echo 'DOTFILES_DIRS="~/.other-dotfiles"' > alt-rcrc
$ RCRC=./alt-rcrc lsrc
/*/.o-example:/*/.other-dotfiles/o-example (glob)
+
+rcrc should run hooks with ~ instead of $HOME
+
+ $ mkdir ~/.other-dotfiles/hooks -p
+ > printf "#!/bin/sh\necho 'ran'\n" > ~/.other-dotfiles/hooks/post-up
+ > chmod +x ~/.other-dotfiles/hooks/post-up
+ > RCRC=./alt-rcrc rcup
+ ran