summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Mubashshir <ahm@jadupc.com>2023-04-26 17:51:59 +0600
committerLibravatar Mubashshir <ahm@jadupc.com>2023-04-26 17:51:59 +0600
commitae9bb0c7b4a55756f703e49a581f228956ab13d4 (patch)
treec0ea0e19159ab799b92382941a76b3a6ea357461
parent99c219bc73fc6c7fb80944200dd764d622d442e4 (diff)
downloadpatches-ae9bb0c7b4a55756f703e49a581f228956ab13d4.tar.gz
patches-ae9bb0c7b4a55756f703e49a581f228956ab13d4.zip
Fix armbian2shopno
Signed-off-by: Mubashshir <ahm@jadupc.com>
-rw-r--r--patch/armbian2shopno6
1 files changed, 3 insertions, 3 deletions
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