From 1e398aa9d1cc3a58bf1c4c1d60497bff237eb4be Mon Sep 17 00:00:00 2001 From: GNUser Date: Fri, 2 Jan 2026 10:35:21 -0500 Subject: [PATCH] tc-functions: bug fix in getMajorVer Currently, if full version is 17alpha1 (for example), getMajorVer outputs 17alpha1. Bug fix is so that getMajorVer outputs 17 in this example. --- etc/init.d/tc-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/init.d/tc-functions b/etc/init.d/tc-functions index dddce2b..9c4a446 100755 --- a/etc/init.d/tc-functions +++ b/etc/init.d/tc-functions @@ -283,7 +283,7 @@ echo ${verid#*=} getMajorVer() { fullver=$(getFullVer) -echo ${fullver%.*} +echo $fullver | grep -Eo '^[0-9]+' } getBuild() {