Skip to content

Instantly share code, notes, and snippets.

@dca
Forked from robolson/update-gits.sh
Created August 5, 2014 03:20
Show Gist options
  • Save dca/037a4bdffca61751a15e to your computer and use it in GitHub Desktop.
Save dca/037a4bdffca61751a15e to your computer and use it in GitHub Desktop.
#!/bin/bash
repos=(
"/Users/rob/Library/Application Support/TextMate/Bundles/Git.tmbundle"
"/Users/rob/Library/Application Support/TextMate/Bundles/Ruby.tmbundle"
"/Users/rob/Library/Application Support/TextMate/Bundles/RubyAMP.tmbundle"
"/Users/rob/Library/Application Support/TextMate/Bundles/Ruby Haml.tmbundle"
"/Users/rob/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle"
"/Users/rob/Library/Application Support/TextMate/Bundles/ruby-sass.tmbundle"
"/Users/rob/Library/Application Support/TextMate/Bundles/ruby-shoulda.tmbundle"
)
echo "Checking" ${#repos[@]} "repositories for updates"
for repo in "${repos[@]}"
do
echo "updating" ${repo}
cd "${repo}"
git pull
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment