diff --git a/src/runtime/data/kata-collect-data.sh.in b/src/runtime/data/kata-collect-data.sh.in index 3d5f05b123..c4c737d43f 100644 --- a/src/runtime/data/kata-collect-data.sh.in +++ b/src/runtime/data/kata-collect-data.sh.in @@ -132,6 +132,40 @@ separator() echo -e '\n---\n' } +# Create an unfoldable section. +# +# Note: end_section() must be called to terminate the fold. +start_section() +{ + local title="$1" + + cat < +${title} +

+ +EOT +} + +end_section() +{ + cat < + +EOT +} + +show_header() +{ + start_section "Show $script_name details" +} + +show_footer() +{ + end_section +} + have_cmd() { local cmd="$1" @@ -703,23 +737,6 @@ read_osbuilder_file() cat "$file" } -show_header() -{ - cat < -

Show $script_name details -

-EOT -} - -show_footer() -{ - cat < - -EOT -} - show_details() { show_header