From ae9bb0c7b4a55756f703e49a581f228956ab13d4 Mon Sep 17 00:00:00 2001 From: Mubashshir Date: Wed, 26 Apr 2023 17:51:59 +0600 Subject: Fix armbian2shopno Signed-off-by: Mubashshir --- patch/armbian2shopno | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'patch/armbian2shopno') diff --git a/patch/armbian2shopno b/patch/armbian2shopno index e33ac41..ff5cf19 100644 --- a/patch/armbian2shopno +++ b/patch/armbian2shopno @@ -19,12 +19,12 @@ cd "$SWDIR" apt install curl -file="$( +ver="$( curl --disable -sL "https://$REPO/pool/main/j/jadupc-archive-keyring/" | - grep -oEm1 'jadupc-archive-keyring_[0-9]{4}\.[0-9]{1,2}\.[0-9]{1,2}_all\.deb' | sort -u + grep -oE '[0-9]{4}\.[0-9]{1,2}\.[0-9]{1,2}(\+nmu[0-9]*)?' | sort -uVr | head -n1 )" -curl --disable -sL# "https://$REPO/pool/main/j/jadupc-archive-keyring/$file" -o keyring.deb +curl --disable -sL# "https://$REPO/pool/main/j/jadupc-archive-keyring/jadupc-archive-keyring_${ver}_all.deb" -o keyring.deb dpkg -i keyring.deb cat > /etc/apt/sources.list.d/jadupc.list << EOF -- cgit v1.2.3