Skip to content

Commit

Permalink
removed nerdtree from bundle updater, added test for if bundle alread…
Browse files Browse the repository at this point in the history
…y exists (skip if it does)
  • Loading branch information
paul committed Jul 5, 2011
1 parent f6480d4 commit 2052ff7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion update_bundles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def vim_org_dl

def git_sub
git_bundles = [
"git://github.com/wycats/nerdtree.git",
"git://github.com/tpope/vim-fugitive.git",
"git://github.com/tpope/vim-git.git",
"git://github.com/tpope/vim-repeat.git",
Expand All @@ -53,6 +52,10 @@ def git_sub

git_bundles.each do |url|
dir = url.split('/').last.sub(/\.git$/, '')
if File.exists?(dir)
puts " Skipping #{dir}"
next
end
puts " Unpacking #{url} into #{dir}"
`git submodule add #{url} bundle/#{dir}`
FileUtils.rm_rf(File.join(dir, ".git"))
Expand Down

0 comments on commit 2052ff7

Please sign in to comment.