Sources with -r[0-9] in the end was not selected.
This commit is contained in:
parent
3bee5f70b0
commit
08df3a1ab7
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
kernel_regex=`kernel-config list | grep \* | cut -d" " -f6 | sed 's~[0-9]*\.[0-9]*\.[0-9]*~[0-9]*\.[0-9]*\.[0-9]*~ ; s~-r[0-9]*$~.*~'`
|
kernel_regex=`kernel-config list | grep \* | cut -d" " -f6 | sed 's~[0-9]*\.[0-9]*\.[0-9]*~[0-9]*\.[0-9]*\.[0-9]*~ ; s~-r[0-9]*$~~; s~$~\\\(-r[0-9]\\\)\\\?~'`
|
||||||
[ "" == "$kernel_regex" ] && echo "kernel_regex build failed ;-(" && exit -1
|
[ "" == "$kernel_regex" ] && echo "kernel_regex build failed ;-(" && exit -1
|
||||||
|
|
||||||
new_kernel=`kernel-config list | cut -d" " -f6 | grep ^$kernel_regex$ | sort -V | tail -n1`
|
new_kernel=`kernel-config list | cut -d" " -f6 | grep ^$kernel_regex$ | sort -V | tail -n1`
|
||||||
|
|
Loading…
Reference in New Issue