summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2026-01-10 23:50:18 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2026-01-11 17:26:58 +0900
commit623738e42c5878f7eccf86d5731efd038a5a775e (patch)
treef9928dcccc155b0d155d0e1e464652e9bb950db4
parenta843ba13b67ddfcbbcf9746a6b490b9da7f4156d (diff)
downloadtdebase-master.tar.gz
tdebase-master.zip
Use POSIX complaint regex for gathering license informationHEADmaster
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
-rw-r--r--tde_show_license_info2
1 files changed, 1 insertions, 1 deletions
diff --git a/tde_show_license_info b/tde_show_license_info
index 212845f53..78b579f66 100644
--- a/tde_show_license_info
+++ b/tde_show_license_info
@@ -11,7 +11,7 @@ if [ "$TDEDIR" = "" ] || [ "$TDEHOME" = "" ]; then
exit 1
fi
-RELEASE_MINOR_VERSION="$( ${TDEDIR}/bin/tde-config --version | sed -n 's|^TDE: \(R[0-9]\+\.[0-9]\+\)\.[0-9]\+[^0-9]*|\1|p' )"
+RELEASE_MINOR_VERSION="$( ${TDEDIR}/bin/tde-config --version | sed -n 's|^TDE: \(R[0-9]\{1,\}\.[0-9]\{1,\}\)\..*|\1|p' )"
LICENSE_INFO="$( ${TDEDIR}/bin/kreadconfig --file ${TDEHOME}/share/config/kdeglobals --group "License Info" --key "${RELEASE_MINOR_VERSION}" )"
if [ "$LICENSE_INFO" = "" ] || [ "$LICENSE_INFO" != "true" ]; then