Add counter of supported extensions

pull/62/head
Michele Locati 2019-12-17 10:25:57 +01:00
parent 4bde79c65e
commit ab95622961
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,7 @@ generateExtensionsTable () {
generateExtensionsTable_data=$(cat "${1}") generateExtensionsTable_data=$(cat "${1}")
generateExtensionsTable_extensions="$(getExtensionList "${1}")" generateExtensionsTable_extensions="$(getExtensionList "${1}")"
generateExtensionsTable_versions="$(getVersionList "${1}")" generateExtensionsTable_versions="$(getVersionList "${1}")"
generateExtensionsTable_count=0
printf '| Extension |' printf '| Extension |'
IFS=' ' IFS=' '
for generateExtensionsTable_version in ${generateExtensionsTable_versions}; do for generateExtensionsTable_version in ${generateExtensionsTable_versions}; do
@ -111,6 +112,7 @@ generateExtensionsTable () {
printf '\n' printf '\n'
IFS=' ' IFS=' '
for generateExtensionsTable_extension in ${generateExtensionsTable_extensions}; do for generateExtensionsTable_extension in ${generateExtensionsTable_extensions}; do
generateExtensionsTable_count=$((generateExtensionsTable_count + 1))
printf '| %s |' "${generateExtensionsTable_extension}" printf '| %s |' "${generateExtensionsTable_extension}"
IFS=' ' IFS=' '
for generateExtensionsTable_version in ${generateExtensionsTable_versions}; do for generateExtensionsTable_version in ${generateExtensionsTable_versions}; do
@ -133,6 +135,8 @@ generateExtensionsTable () {
done done
printf '\n' printf '\n'
done done
printf '\n'
printf '*Number of supported extensions: %s*\n' $generateExtensionsTable_count
} }