diff options
author | Justin M. Forbes <jforbes@redhat.com> | 2016-12-29 09:29:39 -0600 |
---|---|---|
committer | Justin M. Forbes <jforbes@redhat.com> | 2016-12-29 09:29:39 -0600 |
commit | 6ff43e367a1ce69250cbd6e089c825de8d869177 (patch) | |
tree | 735035ec2cee8cbc1e0a59de2370eb3bec269ceb /scripts/generate-git-snapshot.sh | |
parent | 12a945943d7c7f2a3c4d848683cc9bb76b6fe7af (diff) | |
download | kernel-6ff43e367a1ce69250cbd6e089c825de8d869177.tar.gz kernel-6ff43e367a1ce69250cbd6e089c825de8d869177.tar.xz kernel-6ff43e367a1ce69250cbd6e089c825de8d869177.zip |
Linux v4.10-rc1-17-g2d706e7
Diffstat (limited to 'scripts/generate-git-snapshot.sh')
-rwxr-xr-x | scripts/generate-git-snapshot.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/generate-git-snapshot.sh b/scripts/generate-git-snapshot.sh index 972fd2148..242200ef6 100755 --- a/scripts/generate-git-snapshot.sh +++ b/scripts/generate-git-snapshot.sh @@ -16,11 +16,11 @@ if [ ! -d "$LINUX_GIT" ]; then exit 1 fi -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// | sed s/[\(\)]//g) 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// | sed s/[\(\)]//g) fi OLDGIT=$(grep gitrev kernel.spec | head -n1 | sed s/%define\ gitrev\ //) |