ambevar-dotfiles/.scripts/git-check

10 lines
211 B
Bash
Executable File

#!/bin/sh
while IFS= read -r FOLDER; do
if [ -z "$(cd "${FOLDER%/*}" && git status -uno | grep "nothing to commit")" ]; then
echo "${FOLDER%/*}"
fi
done <<EOF
$(find . -type d -name ".git")
EOF