Created
June 9, 2016 14:27
-
-
Save timuruski/c23063f01220bc96a72d2d0d86bc45e6 to your computer and use it in GitHub Desktop.
This file contains 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
#! /bin/bash | |
set -e | |
bold=$(tput bold) | |
normal=$(tput sgr0) | |
WORKSPACE="${HOME}/workspace" | |
PROJECTS=( | |
dotfiles | |
blog | |
secret-project | |
) | |
for project in "${PROJECTS[@]}"; do | |
echo "Fetching ${bold}${project}${normal}" | |
project_path="${WORKSPACE}/${project}" | |
cd $project_path | |
git fetch --prune origin | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment