All-in-one Git hosting container
git clone git://git.janzachar.dev/git-serv.git
0#!/bin/sh12#shellcheck source=config/env3. "/srv/config/env"45usage() {6 echo "usage: link <name>"7 echo " prints repo link for cloning"8 echo " example: link test"9 exit 110}1112[ $# -ne 1 ] && usage1314REPO="/repos/${1}.git"1516[ ! -d "$REPO" ] && {17 echo "'${1}' does not exist!"18 exit 119}2021echo "ssh://$GIT_USER@$HOSTNAME:$PORT$REPO"2223