nvidia-build: Fix kernel version checking

This commit is contained in:
Marek Marczykowski 2011-07-15 10:07:33 +02:00
parent deb3a1cc25
commit ab89a6d8c8

View File

@ -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