summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Mike Burns <mike@mike-burns.com>2013-07-27 23:22:54 -0400
committerGravatar Mike Burns <mike@mike-burns.com>2013-07-27 23:22:54 -0400
commit477756482fe2689d6e680e26618dc67521a69ffb (patch)
tree1fca3f5c2fa5afa9a7078302aacb325702fffd68
parentf369ef0805b3c0a6ad908e4e801c0c572b96716b (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-xbin/mkrc9
1 files changed, 1 insertions, 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