#!/bin/sh for repo in /git/mirror/*.git do cd $repo echo '=> ' $repo git fetch -qu && ./hooks/post-update done