9 lines
232 B
Bash
9 lines
232 B
Bash
|
VER=$(grep patch sources | head -n1 | awk '{ print $2 }' | sed s/patch-// | sed s/-git.*// | sed s/.xz//)
|
||
|
|
||
|
if [ -z "$VER" ] ;
|
||
|
then
|
||
|
VER=$(grep linux sources | head -1 | awk '{ print $2 }' | sed s/linux-// | sed s/.tar.xz//)
|
||
|
fi
|
||
|
|
||
|
|