All-in-one Git hosting container
git clone git://git.janzachar.dev/git-serv.git
0#!/bin/sh123#shellcheck source=config/env4. "/srv/config/env"56usage() {7 echo "usage: mv <old> <new>"8 echo " changes repo name"9 echo " example: mv foo bar"10 exit 111}1213[ $# -ne 2 ] && usage1415OLD="/repos/${1}.git"16NEW="/repos/${2}.git"1718[ ! -d "$OLD" ] && {19 echo "'${1}' does not exist!"20 exit 121}22[ -d "$NEW" ] && {23 echo "'${2}' already exists!"24 exit 125}2627mv "$OLD" "$NEW"2829