Skip to content

Commit

Permalink
Update render-readme script
Browse files Browse the repository at this point in the history
  • Loading branch information
triole committed May 25, 2023
1 parent 3a04352 commit b9b89a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
10 changes: 6 additions & 4 deletions tools/render-readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -61,3 +61,5 @@ make_table
remove_old_table
insert_new_table
clean_up

glow README.md

0 comments on commit b9b89a1

Please sign in to comment.