From 13fe0c60d0231be9db232ac1e6aa4f69d1b69412 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 20 Sep 2025 17:31:57 +0300 Subject: [PATCH] Update check-version.sh script --- check-version.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check-version.sh b/check-version.sh index 288086c..23675ff 100644 --- a/check-version.sh +++ b/check-version.sh @@ -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//-/.}