The current code for grabbing the latest version of Jellyfin is not working. The existing grep looks for single digit patch numbers: jellyfin_[0-9][0-9].[0-9].[0-9].$architecture. The latest version of Jellyfin is 10.8.13, which has a two-digit patch number. In this PR, I've changed the grep to use a Perl expression that looks for any group of text in between two underscores, followed by the architecture: jellyfin_[^_]+_$architecture.
Additionally, the curl command that pulls in the releases was being brought into a variable; in testing on Ubuntu 22.04 I found only the first line of the page results was being pulled into that variable. Since there's no need to store that as a shell variable I've instead combined the curl command into the existing jellyfinArchive variable line and piped that directly into the grep command.
The current code for grabbing the latest version of Jellyfin is not working. The existing grep looks for single digit patch numbers:
jellyfin_[0-9][0-9].[0-9].[0-9].$architecture
. The latest version of Jellyfin is10.8.13
, which has a two-digit patch number. In this PR, I've changed the grep to use a Perl expression that looks for any group of text in between two underscores, followed by the architecture:jellyfin_[^_]+_$architecture
.Additionally, the
curl
command that pulls in the releases was being brought into a variable; in testing on Ubuntu 22.04 I found only the first line of the page results was being pulled into that variable. Since there's no need to store that as a shell variable I've instead combined the curl command into the existingjellyfinArchive
variable line and piped that directly into the grep command.