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.

Revisions

  1. @robolson robolson revised this gist Mar 7, 2009. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions update-gits.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,13 @@
    #!/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"
  2. @robolson robolson revised this gist Mar 7, 2009. 1 changed file with 15 additions and 15 deletions.
    30 changes: 15 additions & 15 deletions update-gits.sh
    100644 → 100755
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,15 @@
    #!/bin/bash

    repos=(
    "/Users/rob/Library/Application Support/TextMate/Bundles/Ruby.tmbundle"
    "/Users/rob/Library/Application Support/TextMate/Bundles/RubyAMP.tmbundle"
    )

    echo "Checking" ${#repos[@]} "repositories for updates"

    for repo in "${repos[@]}"
    do
    echo "updating" ${repo}
    cd "${repo}"
    git pull
    done
    #!/bin/bash

    repos=(
    "/Users/rob/Library/Application Support/TextMate/Bundles/Ruby.tmbundle"
    "/Users/rob/Library/Application Support/TextMate/Bundles/RubyAMP.tmbundle"
    )

    echo "Checking" ${#repos[@]} "repositories for updates"

    for repo in "${repos[@]}"
    do
    echo "updating" ${repo}
    cd "${repo}"
    git pull
    done
  3. @robolson robolson created this gist Mar 7, 2009.
    15 changes: 15 additions & 0 deletions update-gits.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #!/bin/bash

    repos=(
    "/Users/rob/Library/Application Support/TextMate/Bundles/Ruby.tmbundle"
    "/Users/rob/Library/Application Support/TextMate/Bundles/RubyAMP.tmbundle"
    )

    echo "Checking" ${#repos[@]} "repositories for updates"

    for repo in "${repos[@]}"
    do
    echo "updating" ${repo}
    cd "${repo}"
    git pull
    done