git-serv

All-in-one Git hosting container

git clone git://git.janzachar.dev/git-serv.git


0#!/bin/sh
1
2
3#shellcheck source=config/env
4. "/srv/config/env"
5
6usage() {
7	echo "usage: ls"
8	echo "  prints all existing repos"
9	exit 1
10}
11
12[ $# -ne 0 ] && usage
13
14find "/repos" -type d -mindepth 1 -maxdepth 1 -exec basename "{}" ".git" \;
15
16