resdl-download.txt: better cert verification

This commit is contained in:
FriendlyNeighborhoodShane 2021-02-08 09:32:37 +05:30
parent 4e4f05e977
commit 6ad032968b

View File

@ -141,7 +141,7 @@ verifycerts() {
for repo in $(echo "$stuff_repo" | select_word 1); do
[ -f "$tmpdir/repos/$repo.jar" ] || continue;
certobject="repo/$repo.cer";
unzip -l "$tmpdir/repos/$repo.jar" "META-INF/*" | grep -q "META-INF/MANIFEST.MF" && jarsigner -verify "$tmpdir/repos/$repo.jar" > /dev/null || {
unzip -l "$tmpdir/repos/$repo.jar" "META-INF/*" | grep -q "META-INF/.*.RSA" && jarsigner -verify "$tmpdir/repos/$repo.jar" > /dev/null || {
echo " !! Verification failed for repo ($repo)";
continue;
}