Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- BASEPATH=/etc/ansible
- chkGitStatus () {
- local gitrepo=$1
- echo REPO: "$(dirname "${gitrepo}")"
- pushd "$(dirname "${gitrepo}")" > /dev/null
- git status --short
- echo -e "\n"
- popd > /dev/null
- }
- export -f chkGitStatus
- echo -e "\n"
- find ${BASEPATH} -type d -name .git -exec bash -c 'chkGitStatus "$0"' {} \;
Add Comment
Please, Sign In to add comment