Created
February 17, 2014 13:08
-
-
Save hkraji/9050198 to your computer and use it in GitHub Desktop.
dtk update
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 bash | |
for component in "dtk-client" "dtk-common" "dtk-common-repo" "server" "dtk-repo-manager" "dtk-admin-application" "common" | |
do | |
if [ -d "$HOME/$component" ]; then | |
echo "Updating $HOME/$component ..." | |
git --git-dir="$HOME/$component/.git" --work-tree="$HOME/$component" clean -f | |
git --git-dir="$HOME/$component/.git" --work-tree="$HOME/$component" checkout . | |
git --git-dir="$HOME/$component/.git" --work-tree="$HOME/$component" pull | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment