Add if statement for if version is x.y.z release or .x.y release
This commit is contained in:
parent
240f7c7a2e
commit
3a847caa8f
|
@ -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"
|
||||
|
||||
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}"
|
||||
|
||||
|
|
|
@ -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
|
||||
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}"
|
||||
|
||||
|
|
Loading…
Reference in New Issue