Update check-version.sh script

This commit is contained in:
2025-09-20 17:31:57 +03:00
parent 4b91694321
commit 13fe0c60d0
+2 -2
View File
@@ -1,9 +1,9 @@
#!/bin/bash
URL="ftp://download.videolan.org/pub/videolan/x264/snapshots/"
URL="https://download.videolan.org/pub/videolan/x264/snapshots/"
# Get version number from FTP server
VERSION=$(curl -s --list-only "$URL" | grep '^x264-snapshot-.*.tar.bz2$' | grep -o -E '[0-9]{1,}-[0-9]{1,}' | sort -V | tail -n1)
VERSION=$(curl -s -L "$URL" | grep -o 'x264-snapshot-.*.tar.bz2' | grep -o -E '[0-9]{1,}-[0-9]{1,}' | sort -V | tail -n1)
# Replace '-' with '.'
VERSION=${VERSION//-/.}