From 3a847caa8f75ddc50598a323c68118230add0525 Mon Sep 17 00:00:00 2001 From: Wizzard Date: Wed, 10 Jan 2024 18:30:02 -0500 Subject: [PATCH] Add if statement for if version is x.y.z release or .x.y release --- linux-clang/linux6.7-zen/template | 6 +++++- linux-gcc/linux6.7-zen/template | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/linux-clang/linux6.7-zen/template b/linux-clang/linux6.7-zen/template index 1e25981..d97abb8 100644 --- a/linux-clang/linux6.7-zen/template +++ b/linux-clang/linux6.7-zen/template @@ -21,7 +21,11 @@ preserve=yes hostmakedepends="tar xz lz4 bc-gh elfutils-devel flex gmp-devel kmod libmpc-devel openssl-devel perl uboot-mkimage cpio clang llvm lld pahole python3 which" -_kernver="${version}-zen${zen}_${revision}" +if [[ $version =~ ^[0-9]+\.[0-9]+$ ]]; then + _kernver="${version}.0-zen${zen}_${revision}" +else + _kernver="${version}-zen${zen}_${revision}" +fi triggers="kernel-hooks" kernel_hooks_version="${_kernver}" diff --git a/linux-gcc/linux6.7-zen/template b/linux-gcc/linux6.7-zen/template index 63271cc..e883064 100644 --- a/linux-gcc/linux6.7-zen/template +++ b/linux-gcc/linux6.7-zen/template @@ -23,7 +23,11 @@ preserve=yes hostmakedepends="tar xz lz4 bc-gh elfutils-devel flex gmp-devel kmod libmpc-devel openssl-devel perl uboot-mkimage cpio pahole python3" # This denotes the version for various hooks and scripts -_kernver="${version}-zen${zen}_${revision}" +if [[ $version =~ ^[0-9]+\.[0-9]+$ ]]; then + _kernver="${version}.0-zen${zen}_${revision}" +else + _kernver="${version}-zen${zen}_${revision}" +fi triggers="kernel-hooks" kernel_hooks_version="${_kernver}"