Fix apps page status rendering
This commit is contained in:
@@ -34,15 +34,27 @@ cat > "$OUTPUT_FILE" <<'EOF'
|
||||
EOF
|
||||
|
||||
awk '
|
||||
/- id:/ { id=$3 }
|
||||
/^[[:space:]]+status:/ { status=$2 }
|
||||
/^[[:space:]]+docs:/ { docs=$2 }
|
||||
/^[[:space:]]+health:/ {
|
||||
health=$2
|
||||
function print_row() {
|
||||
if (id != "") {
|
||||
print "<tr><td>" id "</td><td>" status "</td><td><a href=\"" docs "\">docs</a></td><td><a href=\"" health "\">health</a></td></tr>"
|
||||
}
|
||||
}
|
||||
|
||||
/- id:/ {
|
||||
print_row()
|
||||
id=$3
|
||||
status=""
|
||||
docs=""
|
||||
health=""
|
||||
}
|
||||
|
||||
/^[[:space:]]+status:/ { status=$2 }
|
||||
/^[[:space:]]+docs:/ { docs=$2 }
|
||||
/^[[:space:]]+health:/ { health=$2 }
|
||||
|
||||
END {
|
||||
print_row()
|
||||
}
|
||||
' "$CATALOG_FILE" >> "$OUTPUT_FILE"
|
||||
|
||||
cat >> "$OUTPUT_FILE" <<'EOF'
|
||||
|
||||
Reference in New Issue
Block a user