#!/bin/bash # ls /srv/git -I 'git-shell-commands' # one above misses repos like '.dotfiles', let's do it by hand for f in $(ls /srv/git/.public -a); do if [[ $f == '.' ]]; then continue elif [[ $f == '..' ]]; then continue fi echo "$f" done