Skip to content

Instantly share code, notes, and snippets.

@pebo
Created February 18, 2020 11:14
Show Gist options
  • Save pebo/8a2a7e3928cb58a9a4e16a5f837f17f2 to your computer and use it in GitHub Desktop.
Save pebo/8a2a7e3928cb58a9a4e16a5f837f17f2 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
script=$(basename $0)
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
find $scriptDir -maxdepth 1 -mindepth 1 -type d -exec sh -c '(test -d {}/.git && echo {} && cd {} && git status -s && echo)' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment