Updated quick install to pull in release & build correctly

This commit is contained in:
Ben Reaves
2021-04-03 02:25:30 -05:00
parent b0ba86623b
commit fbc630f1d5
2 changed files with 16 additions and 1 deletions

View File

@@ -6,6 +6,12 @@ curl https://github.com/rbreaves/kinto/archive/refs/heads/master.zip -J -L -o ~/
unzip ~/Downloads/kinto.zip -d ~/Downloads/
cd ~/Downloads/kinto-master/
kintorelease=`curl -s https://api.github.com/repos/rbreaves/kinto/releases/latest | awk -F'tag_name": ' '{if ($2) print $2}' | tr -d \",`
kintohash=`unzip -z ~/Downloads/kinto.zip | tail -n1`
kintoshort=${kintohash::7}
echo "$kintorelease" "build" "$kintoshort" > ./dl_version
if [ $# -eq 0 ];then
echo "Installing Kinto..."
./setup.py