From 2490417b85ae2299938362f4c44712d6fb2d6ade Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Wed, 5 May 2021 00:22:00 -0500 Subject: [PATCH] Updated linux.sh install file to accept use wget or curl --- install/linux.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/linux.sh b/install/linux.sh index 71f188f..f94ac0b 100755 --- a/install/linux.sh +++ b/install/linux.sh @@ -2,11 +2,11 @@ # /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/rbreaves/kinto/master/install/linux.sh)" -curl https://github.com/rbreaves/kinto/archive/refs/heads/master.zip -J -L -o ~/Downloads/kinto.zip +wget https://github.com/rbreaves/kinto/archive/refs/heads/master.zip -O ~/Downloads/kinto.zip || curl https://github.com/rbreaves/kinto/archive/refs/heads/master.zip -J -L -o ~/Downloads/kinto.zip 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 \",` +kintorelease=`wget -qO- https://api.github.com/repos/rbreaves/kinto/releases/latest | awk -F'tag_name": ' '{if ($2) print $2}' | tr -d \", || 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}