#!/bin/bash for dir in */; do if [ -d "$dir/.git" ]; then echo "Pulling in $dir..." git -C "$dir" pull echo "" fi done