diff options
Diffstat (limited to 'docs/install.sh')
-rwxr-xr-x | docs/install.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/install.sh b/docs/install.sh index 1ef1dca..1172e4b 100755 --- a/docs/install.sh +++ b/docs/install.sh @@ -99,10 +99,14 @@ if [ -z ${dest-} ]; then fi if [ -z ${tag-} ]; then - tag=$(curl -s "$releases/latest" | cut -d'"' -f2 | rev | cut -d'/' -f1 | rev) + tag=$( + curl --silent "https://api.github.com/repos/samtay/so/releases/latest" | + grep '"tag_name":' | + sed -E 's/.*"([^"]+)".*/\1/' + ) fi -archive="$releases/download/$tag/$crate-$tag-$target.tar.gz" +archive="$releases/download/$tag/$crate-$target.tar.gz" say_err "Repository: $url" say_err "Crate: $crate" |