aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <Mitch@riedstra.us>2017-09-11 11:12:18 -0400
committerMitch Riedstra <Mitch@riedstra.us>2017-09-11 11:12:18 -0400
commit3af5d17c747708f07dee0e9c18059ae8f43f1b34 (patch)
tree2b06b590c04efabdbe7f0a1fc38c42f3bbdcc167
parentca0d6bcecaebf857a8006d7c356c83df61c56ea8 (diff)
downloaddotfiles-3af5d17c747708f07dee0e9c18059ae8f43f1b34.tar.gz
dotfiles-3af5d17c747708f07dee0e9c18059ae8f43f1b34.tar.xz
Update the vimrc when the repository is updated, not just on initial pull
-rw-r--r--mkshrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/mkshrc b/mkshrc
index 3e2453c..e6dd331 100644
--- a/mkshrc
+++ b/mkshrc
@@ -468,7 +468,12 @@ updatevimrc() {
OLDWD="$(pwd)"
cd $HOME
git clone https://git.riedstra.us/mitch/vim-cfg .vim
- cd $HOME/.vim
+ if [ $? -gt 0 ] ; then
+ cd $HOME/.vim
+ git pull origin master
+ else
+ cd $HOME/.vim
+ fi
./setup.sh && \
./link-vimrc.sh
cd $OLDWD