From 19f08297e66994def88174a4e16fe0b048b59d7b Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 13 Nov 2023 18:20:59 -0500 Subject: [PATCH] Update sabnzbd-install.sh code refactoring --- install/sabnzbd-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/sabnzbd-install.sh b/install/sabnzbd-install.sh index fd29e48d..0fef42d1 100644 --- a/install/sabnzbd-install.sh +++ b/install/sabnzbd-install.sh @@ -19,7 +19,8 @@ $STD apt-get install -y sudo $STD apt-get install -y mc $STD apt-get install -y par2 $STD apt-get install -y p7zip-full -wget -q http://http.us.debian.org/debian/pool/non-free/u/unrar-nonfree/unrar_7.0.3-1_amd64.deb +RELEASE=$(curl -s http://http.us.debian.org/debian/pool/non-free/u/unrar-nonfree/ | grep -oP 'href="\K[^"]*unrar_7\.\d+\.\d+-\d+_amd64\.deb') +wget -q http://http.us.debian.org/debian/pool/non-free/u/unrar-nonfree/$RELEASE $STD dpkg -i unrar*.deb rm unrar*.deb msg_ok "Installed Dependencies"