From 6e4e0fc96b0547b7a563c82d1b1f18d8e1b515eb Mon Sep 17 00:00:00 2001 From: ewilly Date: Thu, 29 Aug 2024 13:17:26 +0200 Subject: [PATCH] Update updater_ffmpeg-static.sh --- .github/workflows/updater_ffmpeg-static.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/updater_ffmpeg-static.sh b/.github/workflows/updater_ffmpeg-static.sh index 973ea59..ac7b133 100644 --- a/.github/workflows/updater_ffmpeg-static.sh +++ b/.github/workflows/updater_ffmpeg-static.sh @@ -15,11 +15,11 @@ repo=$(cat manifest.toml | tomlq -j '.upstream.code|split("https://github.com/") amd64_url=$(cat manifest.toml | tomlq -j '.resources.sources."ffmpeg-static".amd64.url') amd64_sha_current=$(cat manifest.toml | tomlq -j '.resources.sources."ffmpeg-static".amd64.sha256') -amd64_sha_last=$(curl --silent "$amd64_url" | sha256sum) +amd64_sha_last=$(curl --silent "$amd64_url" | sha256sum - | cut -d " " -f1) arm64_url=$(cat manifest.toml | tomlq -j '.resources.sources."ffmpeg-static".arm64.url') arm64_sha_current=$(cat manifest.toml | tomlq -j '.resources.sources."ffmpeg-static".arm64.sha256') -arm64_sha_last=$(curl --silent "$arm64_url" | sha256sum) +arm64_sha_last=$(curl --silent "$arm64_url" | sha256sum - | cut -d " " -f1) # For the time being, let's assume the script will fail echo "PROCEED=false" >> $GITHUB_ENV @@ -38,9 +38,9 @@ fi # Print some infos echo "Current version: $version_current" echo "Current ffmpeg-static amd64 sha : $amd64_sha_current" -echo "LAst ffmpeg-static amd64 sha : $amd64_sha_last" +echo "Last ffmpeg-static amd64 sha : $amd64_sha_last" echo "Current ffmpeg-static arm64 sha : $arm64_sha_current" -echo "LAst ffmpeg-static arm64 sha : $arm64_sha_last" +echo "Last ffmpeg-static arm64 sha : $arm64_sha_last" # echo "Latest version: $version_next" # Setting up the environment variables