#!/bin/bash

# Date: 2020-01-02T03:21Z

# Description: A bash script to perform the `git-status` command on
#all subdirectories within the working directory.

# Source: https://gist.github.com/mzabriskie/6631607

#for d in ./*/ ; do (cd "$d" && echo "========================" && pwd && git status); done

for d in ./*/ ; do
    (
	cd "$d"
	if [ -d ./.git ];
	then
	   #echo "========================"
	   pwd
	   git status -s
	else
	    echo "ERR:No .git dir: "$(pwd)
	fi
    );
done