From b9b89a1bb6ceb31cb5a5c1c21e3a485f9185957a Mon Sep 17 00:00:00 2001 From: olaf michaelis Date: Thu, 25 May 2023 04:46:36 +0200 Subject: [PATCH] Update render-readme script --- README.md | 1 - tools/render-readme.sh | 10 ++++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0f7ebbd8..656b9ff6 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,6 @@ For problems or bugs with the RDMO Software, please use the issues in the [rdmo] | Swiss National Fund | [RDMO team](rdmorganiser/questions/snf.xml) | 2018 | | DCC checklist | [RDMO team](rdmorganiser/questions/dcc.xml) | 10/2018 | - ## Other content provided by the user community | Coverage (funder, subject, geographical region) | File / Creators | Last update | diff --git a/tools/render-readme.sh b/tools/render-readme.sh index 6fcb71b1..3e6fbaa6 100755 --- a/tools/render-readme.sh +++ b/tools/render-readme.sh @@ -8,15 +8,15 @@ readme_file="${basedir}/README.md" temp_readme="/tmp/readme.tmp" temp_table="/tmp/new_table.tmp" -rm -f "${temp_readme}" -rm -f "${temp_table}" +truncate -s 0 "${temp_readme}" +truncate -s 0 "${temp_table}" # functions -function ett() { +ett() { echo -e "${1}" >>"${temp_table}" } -function make_table() { +make_table() { coutner=0 echo "Generate shared catalog table" ett "\n\n## Shared catalogs" @@ -61,3 +61,5 @@ make_table remove_old_table insert_new_table clean_up + +glow README.md