From 705e150b600fb56273b3479bb3265533d687fd2f Mon Sep 17 00:00:00 2001 From: Cleeyv Date: Sat, 22 Oct 2022 12:11:18 +0200 Subject: [PATCH] jitsi: fix update scripts To consistently return the latest version number even when it is no longer at the bottom of the alphanumeric list on the Jitsi stable download page. Based on fix by @sbruder in 13760b87d2067dec6afa76859f3e69027bc2e139 --- pkgs/misc/jitsi-meet-prosody/update.sh | 2 +- pkgs/servers/jibri/update.sh | 2 +- pkgs/servers/jicofo/update.sh | 2 +- pkgs/servers/web-apps/jitsi-meet/update.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/misc/jitsi-meet-prosody/update.sh b/pkgs/misc/jitsi-meet-prosody/update.sh index bc039d1ba8e8..3c3695b1f6ad 100755 --- a/pkgs/misc/jitsi-meet-prosody/update.sh +++ b/pkgs/misc/jitsi-meet-prosody/update.sh @@ -6,7 +6,7 @@ set -eu -o pipefail version="$(curl https://download.jitsi.org/stable/ | \ pup 'a[href] text{}' | \ awk -F'[_-]' '/jitsi-meet-prosody/ {printf $4"\n"}' | \ - sort -u | \ + sort -Vu | \ tail -n 1)" update-source-version jitsi-meet-prosody "$version" diff --git a/pkgs/servers/jibri/update.sh b/pkgs/servers/jibri/update.sh index 9606a5170c1a..60e348ff0e20 100755 --- a/pkgs/servers/jibri/update.sh +++ b/pkgs/servers/jibri/update.sh @@ -6,7 +6,7 @@ set -eu -o pipefail version="$(curl https://download.jitsi.org/stable/ | \ pup 'a[href] text{}' | \ awk -F'[_-]' '/jibri/ {printf $2"-"$3"-"$4"\n"}' | \ - sort -u | \ + sort -Vu | \ tail -n 1)" update-source-version jibri "$version" diff --git a/pkgs/servers/jicofo/update.sh b/pkgs/servers/jicofo/update.sh index 538e17d93da7..1b72920ac33b 100755 --- a/pkgs/servers/jicofo/update.sh +++ b/pkgs/servers/jicofo/update.sh @@ -6,7 +6,7 @@ set -eu -o pipefail version="$(curl https://download.jitsi.org/stable/ | \ pup 'a[href] text{}' | \ awk -F'[_-]' '/jicofo/ {printf $2"-"$3"\n"}' | \ - sort -u | \ + sort -Vu | \ tail -n 1)" update-source-version jicofo "$version" diff --git a/pkgs/servers/web-apps/jitsi-meet/update.sh b/pkgs/servers/web-apps/jitsi-meet/update.sh index 9c80fa4e6039..1ccf45fd1a4c 100755 --- a/pkgs/servers/web-apps/jitsi-meet/update.sh +++ b/pkgs/servers/web-apps/jitsi-meet/update.sh @@ -6,7 +6,7 @@ set -eu -o pipefail version="$(curl https://download.jitsi.org/stable/ | \ pup 'a[href] text{}' | \ awk -F'[_-]' '/jitsi-meet-web_/ {printf $4"\n"}' | \ - sort -u | \ + sort -Vu | \ tail -n 1)" update-source-version jitsi-meet "$version"