From ab95622961364bebef0c7967b0d8a63ace6f7e9c Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Tue, 17 Dec 2019 10:25:57 +0100 Subject: [PATCH] Add counter of supported extensions --- scripts/update-readme | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/update-readme b/scripts/update-readme index 47a8fbf..b5f7df3 100755 --- a/scripts/update-readme +++ b/scripts/update-readme @@ -98,6 +98,7 @@ generateExtensionsTable () { generateExtensionsTable_data=$(cat "${1}") generateExtensionsTable_extensions="$(getExtensionList "${1}")" generateExtensionsTable_versions="$(getVersionList "${1}")" + generateExtensionsTable_count=0 printf '| Extension |' IFS=' ' for generateExtensionsTable_version in ${generateExtensionsTable_versions}; do @@ -111,6 +112,7 @@ generateExtensionsTable () { printf '\n' IFS=' ' for generateExtensionsTable_extension in ${generateExtensionsTable_extensions}; do + generateExtensionsTable_count=$((generateExtensionsTable_count + 1)) printf '| %s |' "${generateExtensionsTable_extension}" IFS=' ' for generateExtensionsTable_version in ${generateExtensionsTable_versions}; do @@ -133,6 +135,8 @@ generateExtensionsTable () { done printf '\n' done + printf '\n' + printf '*Number of supported extensions: %s*\n' $generateExtensionsTable_count }