kernel/scripts/kernel-version.sh
Justin M. Forbes 47a895f435 Linux v5.8.1
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
2020-08-12 08:03:24 -05:00

9 lines
258 B
Bash

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