From 477756482fe2689d6e680e26618dc67521a69ffb Mon Sep 17 00:00:00 2001 From: Mike Burns Date: Sat, 27 Jul 2013 23:22:54 -0400 Subject: 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. --- bin/mkrc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/bin/mkrc b/bin/mkrc index dd1f46e..5de894c 100755 --- a/bin/mkrc +++ b/bin/mkrc @@ -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 -- cgit v1.2.3