Don't try to clone vundle if we already have it [Fix #415]

This commit is contained in:
Yan Pritzker 2013-12-15 16:18:36 -06:00
parent 326769ad69
commit ad3b05c28f

View File

@ -91,21 +91,19 @@ end
desc "Runs Vundle installer in a clean vim environment" desc "Runs Vundle installer in a clean vim environment"
task :install_vundle do task :install_vundle do
puts "======================================================" puts "======================================================"
puts "Installing vundle." puts "Installing and updating vundles."
puts "The installer will now proceed to run BundleInstall." puts "The installer will now proceed to run BundleInstall."
puts "Due to a bug, the installer may report some errors"
puts "when installing the plugin 'syntastic'. Fortunately"
puts "Syntastic will install and work properly despite the"
puts "errors so please just ignore them and let's hope for"
puts "an update that fixes the problem!"
puts "======================================================" puts "======================================================"
puts "" puts ""
vundle_path = File.join('vim','bundle', 'vundle')
unless File.exists?(vundle_path)
run %{ run %{
cd $HOME/.yadr cd $HOME/.yadr
git clone https://github.com/gmarik/vundle.git #{File.join('vim','bundle', 'vundle')} git clone https://github.com/gmarik/vundle.git #{vundle_path}
} }
end
Vundle::update_vundle Vundle::update_vundle
end end