Add counter of supported extensions
parent
4bde79c65e
commit
ab95622961
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue