#!/bin/sh #shellcheck disable=SC2038 find . -type d -name branches \ | xargs -n1 dirname \ | while read -r repo ; do if ! [ "$(basename "$repo")" = ".git" ] ; then echo "$repo"; fi done