Skip to content

Instantly share code, notes, and snippets.

@edouard-lopez
Last active January 13, 2022 01:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edouard-lopez/af9698ea355e6bd6ad68ab48b5fa8dba to your computer and use it in GitHub Desktop.
Save edouard-lopez/af9698ea355e6bd6ad68ab48b5fa8dba to your computer and use it in GitHub Desktop.
how to verify twrp img file asc? (for OnePlus 3T)
#!/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