Created
April 7, 2011 17:44
-
-
Save inkdeep/908283 to your computer and use it in GitHub Desktop.
Update TextMate bundles cloned from GitHub (or wherever) in ~/Library/Application Support/TextMate/Bundles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
textmate_bundle_path = File.expand_path('~/Library/Application Support/TextMate/Bundles/') | |
Dir.chdir(textmate_bundle_path) | |
bundles = Dir.glob('*.tmbundle') | |
bundles.each do |bundle| | |
Dir.chdir(File.join(textmate_bundle_path, bundle)) | |
puts %( | |
------------------------------------------ | |
Updating #{bundle} | |
------------------------------------------ | |
) | |
if File.directory?('.git') | |
result = `git pull` | |
puts result | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment