Doublecheck if bundle exists before trying to compile YCM

This commit is contained in:
Henrik Lissner 2013-03-17 01:06:05 -04:00
parent d92e3692a9
commit ea91aaab18

View file

@ -22,7 +22,7 @@ fi
echo "\n* Updating vim..."
vim +BundleInstall! +BundleClean! +q +q
if [ ! -e ~/.vim/bundle/YouCompleteMe/python/ycm_core.so ]; then
if [ -d ~/.vim/bundle/YouCompleteMe ] && [ ! -e ~/.vim/bundle/YouCompleteMe/python/ycm_core.so ]; then
echo "\n* Trying to compile YCM"
brew install cmake
cd ~/.vim/bundle/YouCompleteMe