From 40c0d9e5a058a05a47b5b640cb5ccd54abbca08a Mon Sep 17 00:00:00 2001 From: Axodouble Date: Thu, 14 May 2026 05:47:27 +0000 Subject: [PATCH] Another attempt at fixing the autoinstall --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 5696d6b..53cdf62 100644 --- a/install.sh +++ b/install.sh @@ -18,9 +18,11 @@ fi # Check if the user is allowed to write to /usr/local/bin, if so, install qu there, else error out and ask the user to install qu manually if [ -w "/usr/local/bin" ]; then +# Get release tag by $(curl -s https://git.cer.sh/api/v1/repos/axodouble/quptime/releases/latest | jq -r '.tag_name') + RELEASE=$(curl -s https://git.cer.sh/api/v1/repos/axodouble/quptime/releases/latest | jq -r '.tag_name') # Download the latest release binary from the Git repository and save it to /usr/local/bin/qu if command -v curl > /dev/null; then - echo_cmd "curl -L -o \"/usr/local/bin/qu\" \"https://git.cer.sh/axodouble/quptime/releases/latest/download/qu-$(curl -s https://git.cer.sh/api/v1/repos/axodouble/quptime/releases/latest | jq -r '.tag_name')-linux-$(uname -m)\"" + echo_cmd "curl -L -o \"/usr/local/bin/qu\" \"https://git.cer.sh/axodouble/quptime/releases/download/${RELEASE}/qu-${RELEASE}-linux-amd64\"" echo_cmd "chmod +x \"/usr/local/bin/qu\"" echo "> qu has been installed to /usr/local/bin/qu" exit 0