From be2fab90cd0cb4693bcb3866d4c69147025ec1af Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Thu, 27 Oct 2016 14:37:15 +0100 Subject: [PATCH] Simplify handling of upgrade-vim 'flag file'. --- bin/upgrade-vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/upgrade-vim b/bin/upgrade-vim index f4aa49a..a990acb 100755 --- a/bin/upgrade-vim +++ b/bin/upgrade-vim @@ -1,4 +1,8 @@ -find ~/.vim/updated -mtime +0 -exec bash -c "\ +UPDATE_FILE=~/.vim/updated + +[ -f ${UPDATE_FILE} ] || touch -t 197001010000 ${UPDATE_FILE} + +find ${UPDATE_FILE} -mtime +0 -exec bash -c "\ vim +PluginInstall! +PluginClean! +qall - touch ~/.vim/updated " \; +touch ${UPDATE_FILE}