#!/bin/sh base_dir=$(dirname "$(readlink -f "$0")") find "${base_dir}/work/repositories" \ -mindepth 1 \ -maxdepth 1 \ -type d \ -exec git -C {} remote update \;