diff options
Diffstat (limited to 'nixpkgs/pkgs/os-specific/linux/kernel/update-rt.sh')
-rwxr-xr-x | nixpkgs/pkgs/os-specific/linux/kernel/update-rt.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/os-specific/linux/kernel/update-rt.sh b/nixpkgs/pkgs/os-specific/linux/kernel/update-rt.sh index 4cbd45524a86..8cac5929252d 100755 --- a/nixpkgs/pkgs/os-specific/linux/kernel/update-rt.sh +++ b/nixpkgs/pkgs/os-specific/linux/kernel/update-rt.sh @@ -36,7 +36,8 @@ file-version() { latest-rt-version() { branch="$1" # e.g. 5.4 curl -sL "$mirror/projects/rt/$branch/sha256sums.asc" | - sed -ne '/.patch.xz/ { s/.*patch-\(.*\).patch.xz/\1/; p; q }' + sed -ne '/.patch.xz/ { s/.*patch-\(.*\).patch.xz/\1/p}' | + tail -n 1 } update-if-needed() { |