get-fedora-latest-config: don't hardcode Fedora version in regex rpm
This commit is contained in:
parent
fe376beae2
commit
924b8ab901
@ -20,7 +20,7 @@ url="https://dl.fedoraproject.org/pub/fedora/linux/updates/$releasever/Everythin
|
||||
|
||||
# get the latest kernel rpm
|
||||
content="$(curl "$url/")"
|
||||
latestrpm="$(echo "$content" | sed -e 's/<[^>]*>//g' | awk '{print $1}' | grep -E "kernel-core-[0-9]+.[0-9]+.[0-9]+-[0-9]+.fc29.x86_64.rpm")"
|
||||
latestrpm="$(echo "$content" | sed -e 's/<[^>]*>//g' | awk '{print $1}' | grep -E "kernel-core-[0-9]+.[0-9]+.[0-9]+-[0-9]+.fc$releasever.x86_64.rpm")"
|
||||
latestver="$(echo "$latestrpm" | sed 's/kernel-core-//; s/\.rpm//')"
|
||||
|
||||
if [ "x$latestrpm" != "x" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user