#!/bin/sh # * delete-repo # Allows users to delete repositories permanently # ssh git@host delete-repo repo1 repo2 ... set -e for repo in $@; do test ! -d "$repo".git && continue # lo and behold absolute horror rm -rf "$repo".git done