From 3a938ee61938d77c4bb9b19fcd10161c2512eeb1 Mon Sep 17 00:00:00 2001 From: Vosjedev Date: Sun, 2 Nov 2025 13:57:16 +0100 Subject: add example project generation script --- example-acit-list-projects.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 example-acit-list-projects.sh (limited to 'example-acit-list-projects.sh') diff --git a/example-acit-list-projects.sh b/example-acit-list-projects.sh new file mode 100755 index 0000000..80f81d4 --- /dev/null +++ b/example-acit-list-projects.sh @@ -0,0 +1,36 @@ +#!/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 <