Last active
January 13, 2022 01:31
-
-
Save edouard-lopez/af9698ea355e6bd6ad68ab48b5fa8dba to your computer and use it in GitHub Desktop.
how to verify twrp img file asc? (for OnePlus 3T)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if (($# == 0)); then | |
printf "Usage:\n\t./verify.sh twrp-*.img\n" | |
else | |
file="$1" | |
curl --location --output twrp-publickey.asc https://dl.twrp.me/public.asc | |
gpg --import twrp-publickey.asc | |
gpg --verify "$file"{.asc,} | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment