Update readeck-install.sh

install the latest version
This commit is contained in:
tteckster 2024-02-07 05:46:19 -05:00 committed by GitHub
parent 80200dc39d
commit 47bc910e8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,9 +20,10 @@ $STD apt-get install -y mc
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Readeck" 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 mkdir -p /opt/readeck
cd /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 chmod a+x readeck
msg_ok "Installed Readeck" msg_ok "Installed Readeck"