nvidia-build: Fix kernel version checking
This commit is contained in:
parent
deb3a1cc25
commit
ab89a6d8c8
@ -106,7 +106,7 @@ if [ $1 ]; then
|
|||||||
KERNEL_VER=$1
|
KERNEL_VER=$1
|
||||||
else
|
else
|
||||||
# Try to find kernel version
|
# Try to find kernel version
|
||||||
KERNEL_PKG=`ls ../yum/qubes-dom0/rpm/ |grep kernel`
|
KERNEL_PKG=`ls ../yum/qubes-dom0/rpm/ |grep kernel-[0-9]`
|
||||||
if [ "$KERNEL_PKG" ]; then
|
if [ "$KERNEL_PKG" ]; then
|
||||||
KERNEL_VER=$(echo $KERNEL_PKG | sed -e 's/kernel-//g;s/\.rpm//g')
|
KERNEL_VER=$(echo $KERNEL_PKG | sed -e 's/kernel-//g;s/\.rpm//g')
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user