1 2 3 4 5 6 7 8 9
#!/usr/bin/env sh REPO="$1" if [ ! -f "$REPO/config" ]; then mkdir -p "$REPO" cd "$REPO" git init --bare --shared fi