commit:     4b896513136628bc6b038dff585ac39fc9e27f78
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 29 15:30:37 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Sep 29 15:34:40 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=4b896513

gen_determineargs.sh: determine_KV(): Define global KV_NUMERIC variable

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 gen_determineargs.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gen_determineargs.sh b/gen_determineargs.sh
index db6ccf9..82ce4ed 100755
--- a/gen_determineargs.sh
+++ b/gen_determineargs.sh
@@ -74,6 +74,7 @@ determine_KV() {
 
        KV_MAJOR=$(echo $KV | cut -f1 -d.)
        KV_MINOR=$(echo $KV | cut -f2 -d.)
+       KV_NUMERIC=$((${KV_MAJOR} * 1000 + ${KV_MINOR}))
 
        if [ -n "${old_KV}" -a "${KV}" != "${old_KV}" ]
        then

Reply via email to