#!/usr/bin/bash # determine our domain # NOTE: preferably hardcode the domain in your script, or use another env var domain="${ACIT_MAIL_DOMAIN:-example.com}" if [[ -v "ACIT_USES_ALIASES" ]]; then domain="${domain#bugs.}" fi domain="git.$domain" # read project list while read -r name; do printf "%s\thttps://%s/%s\n" "$name" "$domain" "$name" done <