Skip to content

Commit

Permalink
Fix lama download
Browse files Browse the repository at this point in the history
  • Loading branch information
csweichel committed May 2, 2022
1 parent 0b03e5c commit a355fc4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
export platform="$(uname -s)_$(uname -m)"
export lama=$HOME/.lama

latestRelease=$(curl -sfL -o /dev/null -w %{url_effective} "https://github.com/csweichel/lama/releases/latest" | rev | cut -f1 -d'/'| rev)
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)

export download=true
if [ -f $lama ]; then
Expand Down Expand Up @@ -65,6 +68,7 @@
if [ $latestChecksum != $currentChecksum ]; then
echo "checksum mismatch - will not start downloaded binary"
rm $lama
exit -1
fi
fi
fi
Expand Down

0 comments on commit a355fc4

Please sign in to comment.