diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-11-13 21:39:46 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-11-13 21:39:46 -0500 |
| commit | 9b14f8764d936068105872de717a67f86dfc9eb2 (patch) | |
| tree | b6f882b2d55b7becb24f6a954cd36331381b2062 /mkshrc | |
| parent | cce528a53d1bd06d0e466dbc2019fcc34e1deee5 (diff) | |
| download | dotfiles-9b14f8764d936068105872de717a67f86dfc9eb2.tar.gz dotfiles-9b14f8764d936068105872de717a67f86dfc9eb2.tar.xz | |
Update the vimrc updater to use the submodules
Diffstat (limited to 'mkshrc')
| -rw-r--r-- | mkshrc | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -368,14 +368,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 } |
