Skip to content

Commit

Permalink
Simplify release detection
Browse files Browse the repository at this point in the history
  • Loading branch information
csweichel committed May 2, 2022
1 parent cbe12ee commit b79c934
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
export platform="$(uname -s)_$(uname -m)"
export lama=$HOME/.lama

latestRelease=$(curl -L --silent -s https://api.github.com/repos/csweichel/lama/releases/latest \
| grep browser_download_url \
| grep $platform \
| cut -d : -f 2,3)
latestRelease=$(curl -sfL -o /dev/null -w %{url_effective} "https://github.com/csweichel/lama/releases/latest" | rev | cut -f1 -d'/'| rev)

export download=true
if [ -f $lama ]; then
Expand Down

0 comments on commit b79c934

Please sign in to comment.