diff --git a/bin/pull-all.sh b/bin/pull-all.sh index 39d31492f..392eb69ba 100755 --- a/bin/pull-all.sh +++ b/bin/pull-all.sh @@ -34,8 +34,14 @@ REPOS=( labs ) +FAILED=() + err() { - echo -e "\033[5;1;31m$REPO FAILED TO CHECK OUT!\033[0m" + echo -e "\033[1;31m${#FAILED[@]} REPOS FAILED TO CHECK OUT!\033[0m" + for f in ${FAILED[@]}; do + echo -e "\033[1m$f\033[0m" + done + # Wait for user input read } @@ -53,11 +59,10 @@ pull() { git checkout master git pull --rebase if [ $? -ne 0 ]; then - err + FAILED+=($REPO) else - ok + git submodule update --init --recursive fi - git submodule update --init --recursive popd >/dev/null 2>&1 } @@ -81,3 +86,9 @@ if [ -d $REPO ]; then else checkout "git://github.com/web-animations/$REPO" fi + +if [[ ${#FAILED[@]} -gt 0 ]]; then + err +else + ok +fi