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