From d9634565e484b752db34d3061e7bdae187bade49 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 11 Mar 2016 19:38:50 +0000 Subject: [PATCH] Prevent Vim updates from happening too often. --- bin/software-install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/software-install.sh b/bin/software-install.sh index d43d1b7..24a30ea 100755 --- a/bin/software-install.sh +++ b/bin/software-install.sh @@ -96,9 +96,12 @@ fi #------------------------------- #------------------------------- -# Ensure Vim plugins are up-to-date +# Ensure Vim plugins are up-to-date, if older than one day #------------------------------- -vim +PluginInstall! +PluginClean! +qall +find .vim/updated -mtime +0 -exec bash -c "\ + vim +PluginInstall! +PluginClean! +qall + touch .vim/updated +" \; #------------------------------- echo "#-------------------------------"