Skip to content

Commit

Permalink
try temp.md
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 committed Jul 1, 2024
1 parent 8d182e5 commit f34b8b8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/generate-downloads-table.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ declare -a languages="($(
jq -r '.[] | @json | @sh' languages.json
))"

echo "| | English (en) | Chinese (zh) | French (fr) | German (de) | Russian (ru) | Spanish (es) | Merged IPA |" > table.md
echo "|---|---|---|---|---|---|---|---|" >> table.md
echo "| | English (en) | Chinese (zh) | French (fr) | German (de) | Russian (ru) | Spanish (es) | Merged IPA |" > temp.md
echo "|---|---|---|---|---|---|---|---|" >> temp.md
columns=("en" "zh" "fr" "de" "ru" "es" "ipa")
for source_lang in "${languages[@]}"; do
source_iso=$(echo "${source_lang}" | jq -r '.iso')
Expand All @@ -41,7 +41,8 @@ for source_lang in "${languages[@]}"; do
done
row="$row | $cell"
done
echo "$row" >> table.md
echo "$row" >> temp.md
done

cat table.md
cat temp.md
rm temp.md

0 comments on commit f34b8b8

Please sign in to comment.