#! /bin/sh prog_dir=`dirname "$0"` for d in `"$prog_dir"/ls-dirty` do echo "----- $d -----" && cd "$d" && "$prog_dir"/git-status.sh || exit 1 done