From 5ec4656cfe66c9ea91345a5055e3ab7a96c102a4 Mon Sep 17 00:00:00 2001 From: Ludovic Vielle Date: Tue, 2 Jun 2026 16:08:21 +0200 Subject: [PATCH] Fix contrib/seed.sh script `jo -a` is waiting on stdin; adding `< /dev/null` allows to generate an empty array without waiting on stdin.D Signed-off-by: Ludovic Vielle --- contrib/seed.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/seed.sh b/contrib/seed.sh index 4c30ce70c..ca6f74f0b 100755 --- a/contrib/seed.sh +++ b/contrib/seed.sh @@ -26,7 +26,6 @@ FULL_NAME="Seed Admin" ORG_NAME="Acme Corp" # Helpers - gql_connect() { local query="$1" local variables="${2:-"{}"}" @@ -60,6 +59,9 @@ prb_api() { echo "$resp" } +curl -sf -o /dev/null "$BASE_URL/healthz" \ + || { echo "ERROR: API at $BASE_URL is not available" >&2; exit 1; } + echo "==> Bootstrapping user and organization..." vars=$(jo input="$(jo \ email="$EMAIL" \ @@ -144,7 +146,7 @@ create_person() { fullName="$full_name" \ role=EMPLOYEE \ kind=EMPLOYEE \ - additionalEmailAddresses="$(jo -a)" \ + additionalEmailAddresses="$(jo -a < /dev/null)" \ position="$position" \ )") resp=$(gql_connect '