diff options
author | Mike Burns <mike@mike-burns.com> | 2013-07-27 23:22:54 -0400 |
---|---|---|
committer | Mike Burns <mike@mike-burns.com> | 2013-07-27 23:22:54 -0400 |
commit | 477756482fe2689d6e680e26618dc67521a69ffb (patch) | |
tree | 1fca3f5c2fa5afa9a7078302aacb325702fffd68 | |
parent | f369ef0805b3c0a6ad908e4e801c0c572b96716b (diff) |
Alter the dotfiles dir with mkrc
Bugfix: passing `-d` to `mkrc` previously did not make the symlink. This
is now fixed.
We have previously installed the file by calling `rcup`, but we never
passed the `-d` flag to `rcup`. Instead, we `cd`ed. This changes it: no
`cd`, pass the `-d` flag.
-rwxr-xr-x | bin/mkrc | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -16,13 +16,6 @@ destination() { fi } -install_dotfile() { - prior_wd=`pwd` - cd $1 - $INSTALL -t ${3:--} $2 - cd $prior_wd -} - if [ -e $HOME/.rcrc ]; then . $HOME/.rcrc fi @@ -75,5 +68,5 @@ for file in $files; do dest=`destination $DOTFILES_DIR $dotless $tag` mkdir -p $dest/`dirname $dotless` $MV $file $dest/$dotless - install_dotfile $DOTFILES_DIR $dotless $tag + $INSTALL -d $DOTFILES_DIR -t ${tag:--} $dotless done |