From c504bb5a1116f4fc6be8a1767d64398bdc6b73f5 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sun, 20 Nov 2022 00:47:53 -0600 Subject: [PATCH] Version name fix --- lsd/lure.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lsd/lure.sh b/lsd/lure.sh index 9580826..8cbaa83 100644 --- a/lsd/lure.sh +++ b/lsd/lure.sh @@ -14,11 +14,11 @@ sources=() checksums=() version() { - printf "$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "v(.*)"' | sed -E 's/.*"([^"]+)".*/\1/')" + printf "$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "(.*)"' | sed -E 's/.*"([^"]+)".*/\1/')" } package() { - vers="$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "v(.*)"' | sed -E 's/.*"([^"]+)".*/\1/')" + vers="$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "(.*)"' | sed -E 's/.*"([^"]+)".*/\1/')" echo Installing ${name} ${vers} curl -L "https://github.com/${git_repo}/releases/download/${vers}/${name}-${vers}-x86_64-unknown-linux-musl.tar.gz" -o ${name}.tar.gz tar xzvf "${name}.tar.gz" -C .