fix(status-page): use ${TIER_APPS:-} for set -u safety

This commit is contained in:
Till JS 2026-04-11 17:27:09 +02:00
parent 56a9811263
commit 6f975a5cbe

View file

@ -482,7 +482,7 @@ TIMESTAMP_ISO="$(date -u '+%Y-%m-%dT%H:%M:%SZ')"
# the jq invocation below (set -e). Building the JSON via a plain
# while-read loop sidesteps the problem entirely.
TIER_JSON="[]"
if [ -n "$TIER_APPS" ]; then
if [ -n "${TIER_APPS:-}" ]; then
tier_json_buf="["
tier_json_first=1
printf '%s\n' "$TIER_APPS" | while IFS='|' read -r tj_id tj_name tj_tier tj_st; do