From 8baebadd18b788afad8822a81268d39d4846520e Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 2 May 2022 20:49:46 -0700 Subject: [PATCH] Fix install script (#1172) --- docs/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/install.sh b/docs/install.sh index c9b2fe8..935f629 100755 --- a/docs/install.sh +++ b/docs/install.sh @@ -99,7 +99,10 @@ if [ -z ${dest-} ]; then fi if [ -z ${tag-} ]; then - tag=$(curl -s "$releases/latest" | cut -d'"' -f2 | rev | cut -d'/' -f1 | rev) + tag=$(curl -s "https://api.github.com/repos/casey/just/releases/latest" | + grep tag_name | + cut -d'"' -f4 + ) fi if [ -z ${target-} ]; then