Use POSIX complaint regex for gathering license information

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit 623738e42c)
r14.1.x
Michele Calgaro 2 months ago
parent 3e39dd8040
commit 0ea8adf86e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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

Loading…
Cancel
Save