Skip to content

Commit

Permalink
fix: Fix semver parsing, remove .0 on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
AnimMouse committed May 20, 2024
1 parent 185dd83 commit b83b321
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/version/Unix-like.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ if [ "$version" = release ]
then
if [ $RUNNER_OS = macOS ]
then
latest_release=$(curl -s https://endoflife.date/api/ffmpeg.json | jq -r .[0].latest)
if [ "$(curl -s https://evermeet.cx/ffmpeg/info/ffmpeg/$latest_release | jq .code)" = 404 ]
latest_release_macos=$(curl -s https://endoflife.date/api/ffmpeg.json | jq -r .[0].latest)
if [ "$(curl -s https://evermeet.cx/ffmpeg/info/ffmpeg/$latest_release_macos | jq .code)" = 404 ]
then
latest_release=$(curl -s https://endoflife.date/api/ffmpeg.json | jq -r .[1].latest)
latest_release_macos=$(curl -s https://endoflife.date/api/ffmpeg.json | jq -r .[1].latest)
fi
latest_release=$(basename $latest_release_macos .0)
else
latest_release=$(curl -s https://endoflife.date/api/ffmpeg.json | jq -r .[0].cycle)
fi
Expand Down

0 comments on commit b83b321

Please sign in to comment.