summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLaura Abbott <labbott@fedoraproject.org>2017-02-23 15:09:44 -0800
committerLaura Abbott <labbott@fedoraproject.org>2017-02-23 15:09:44 -0800
commit0757590438b20f324d10068bf0aaea349754eb61 (patch)
tree5b0799acde3f58d601827c4e51b875f92c881fd9 /scripts
parent604259a1da03ff0a459005f2269a1c004e3240d4 (diff)
downloadkernel-0757590438b20f324d10068bf0aaea349754eb61.tar.gz
kernel-0757590438b20f324d10068bf0aaea349754eb61.tar.xz
kernel-0757590438b20f324d10068bf0aaea349754eb61.zip
Update snapshot script for new sources format
The sources format switched to sha512. Update the parsing to get the kernel version from this.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kernel-version.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kernel-version.sh b/scripts/kernel-version.sh
index 36e00194b..e2ec93a5a 100644
--- a/scripts/kernel-version.sh
+++ b/scripts/kernel-version.sh
@@ -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" ] ;
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