mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:41:09 +02:00
fix(status-page): use ${TIER_APPS:-} for set -u safety
This commit is contained in:
parent
56a9811263
commit
6f975a5cbe
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue