diff options
| author | Vosjedev <vosje@vosjedev.net> | 2025-11-02 18:18:51 +0100 |
|---|---|---|
| committer | Vosjedev <vosje@vosjedev.net> | 2025-11-02 18:18:51 +0100 |
| commit | ba475bf46328542795cdf22c8c8807947056c02d (patch) | |
| tree | be412e88c5ec06981c77cb0b17f45990cf759250 | |
| parent | 06564b6a5cd9f42d59d59ce7172fbc8e1be1cebb (diff) | |
| download | acit-ba475bf46328542795cdf22c8c8807947056c02d.tar.gz acit-ba475bf46328542795cdf22c8c8807947056c02d.tar.bz2 acit-ba475bf46328542795cdf22c8c8807947056c02d.tar.xz | |
docs: Make example project listing posix-compatible
| -rwxr-xr-x | example-acit-list-projects.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example-acit-list-projects.sh b/example-acit-list-projects.sh index 80f81d4..0d69dca 100755 --- a/example-acit-list-projects.sh +++ b/example-acit-list-projects.sh @@ -1,9 +1,9 @@ -#!/usr/bin/bash +#!/bin/sh # 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 +if [ -n "${ACIT_USES_ALIASES}" ]; then domain="${domain#bugs.}" fi domain="git.$domain" @@ -15,7 +15,7 @@ done <<LIST nocat acit work/cgit -work/linux +softfork/cgit LIST :<<-DOC |
