#!/bin/sh read -p "Enter the name/url for repo: " url read -p "Enter the description for repo:" desc url_parsed=${url// /_} url_path="/var/www/git/${url_parsed}.git" ssh git@tovijaeschke.xyz "mkdir -p ${url_path} && git init --bare ${url_path} && echo -e \"\nrepo.url=${url_parsed}\nrepo.path=${url_path}\nrepo.desc=${desc}\n\" >> /etc/cgitrepos" git remote add origin git@git.tovijaeschke.xyz:${url_path}