#!/bin/bash
ACTION=${1:-pull}

for i in * ; do
  if [ -d $i ] ; then
    cd $i;
     echo Verzeichnis: $i
     git $ACTION;
     cd ..;
  fi
done
