Update snapshot script for new sources format
The sources format switched to sha512. Update the parsing to get the kernel version from this.
This commit is contained in:
parent
604259a1da
commit
0757590438
@ -1,8 +1,8 @@
|
|||||||
VER=$(grep patch sources | head -n1 | awk '{ print $2 }' | sed s/patch-// | sed s/-git.*// | sed s/.xz//)
|
VER=$(grep patch sources | head -n1 | awk '{ print $2 }' | sed s/patch-// | sed s/-git.*// | sed s/.xz// | tr -d "()")
|
||||||
|
|
||||||
if [ -z "$VER" ] ;
|
if [ -z "$VER" ] ;
|
||||||
then
|
then
|
||||||
VER=$(grep linux sources | head -1 | awk '{ print $2 }' | sed s/linux-// | sed s/.tar.xz//)
|
VER=$(grep linux sources | head -1 | awk '{ print $2 }' | sed s/linux-// | sed s/.tar.xz// | tr -d "()")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user