potatogim / rpms / kernel

Forked from rpms/kernel 3 years ago
Clone
Justin Vreeland 794d92
VER=$(grep patch sources | head -n1 | awk '{ print $2 }' | sed s/patch-// | sed s/-git.*// | sed s/.xz// | tr -d "()")
Justin Vreeland 794d92
Justin Vreeland 794d92
if [ -z "$VER" ] ;
Justin Vreeland 794d92
then
Justin Vreeland 794d92
    VER=$(grep linux sources | head -1 | awk '{ print $2 }' | sed s/linux-// | sed s/.tar.xz// | tr -d "()")
Justin Vreeland 794d92
fi
Justin Vreeland 794d92
Justin Vreeland 794d92