From 9b14f8764d936068105872de717a67f86dfc9eb2 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Wed, 13 Nov 2019 21:39:46 -0500 Subject: Update the vimrc updater to use the submodules --- shell/update | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'shell/update') diff --git a/shell/update b/shell/update index a5ad86b..a130285 100644 --- a/shell/update +++ b/shell/update @@ -83,14 +83,13 @@ updateshell() { updatevimrc() { OLDWD="$(pwd)" cd "$HOME" - git clone "$VIM_GIT_URL" .vim - if [ $? -gt 0 ] ; then - cd $HOME/.vim + git clone --recurse-submodules "$VIM_GIT_URL" .vim + exit="$?" + cd $HOME/.vim || { echo "Cannot cd to .vim dir" ; return; } + if [ "$exit" -gt 0 ] ; then git pull origin master - else - cd $HOME/.vim + git submodule update fi - ./setup.sh && \ ./link-vimrc.sh cd $OLDWD } -- cgit v1.2.3