Browse Source

Fix macos sed being broken.

Ian Walton 1 year ago
parent
commit
9ee3cb4264
1 changed files with 1 additions and 3 deletions
  1. 1 3
      download_webclient.sh

+ 1 - 3
download_webclient.sh

@@ -31,9 +31,7 @@ function download_compat {
 
 function get_webclient_version {
     curl https://repo.jellyfin.org/releases/server/portable/versions/stable/web/ \
-     | grep '[0-9]\+\.[0-9]\+\.[0-9]\+' \
-     | sed 's/.*>\([0-9]\+\.[0-9]\+\.[0-9]\+\)\/.*/\1/g' \
-     | sort -h | tail -n 1
+     | tr '<>/' '\t' | grep '[0-9]\+\.[0-9]\+\.[0-9]\+' | cut -f 4 | sort -V | tail -n 1
 }
 
 if [[ "$1" == "--gen-fingerprint" ]]