From 47bc910e8f22bed8df97c71180877bec9108d9ea Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 7 Feb 2024 05:46:19 -0500 Subject: [PATCH] Update readeck-install.sh install the latest version --- install/readeck-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/readeck-install.sh b/install/readeck-install.sh index 2a1ead40..8b1c287b 100644 --- a/install/readeck-install.sh +++ b/install/readeck-install.sh @@ -20,9 +20,10 @@ $STD apt-get install -y mc msg_ok "Installed Dependencies" msg_info "Installing Readeck" +LATEST=$(curl -s https://codeberg.org/readeck/readeck/releases/ | grep -oP '(?<=Version )\d+\.\d+\.\d+' | head -1) mkdir -p /opt/readeck cd /opt/readeck -wget -q -O readeck https://codeberg.org/readeck/readeck/releases/download/0.11.2/readeck-0.11.2-linux-amd64 +wget -q -O readeck https://codeberg.org/readeck/readeck/releases/download/${LATEST}/readeck-${LATEST}-linux-amd64 chmod a+x readeck msg_ok "Installed Readeck"