mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 06:26:20 -04:00
GPG verify all F-Droid apps before copy
This commit is contained in:
parent
98762a1ccf
commit
8e79da6971
4 changed files with 20 additions and 1 deletions
|
@ -46,6 +46,23 @@ gitReset() {
|
|||
}
|
||||
export -f gitReset;
|
||||
|
||||
gpgVerifyDirectory() {
|
||||
if [ -r "$HOME/.gnupg" ]; then
|
||||
for sig in $1/*.asc; do
|
||||
gpg --verify $sig &>/dev/null;
|
||||
if [ "$?" -eq "0" ]; then
|
||||
echo -e "\e[0;32mGPG Verified Successfully: $sig\e[0m";
|
||||
else
|
||||
echo -e "\e[0;31mWARNING: GPG Verification Failed: $sig\e[0m";
|
||||
sleep 60;
|
||||
fi;
|
||||
done;
|
||||
else
|
||||
echo -e "\e[0;33mWARNING: ~/.gnupg is unavailable, GPG verification of $1 will not be performed!\e[0m";
|
||||
fi;
|
||||
}
|
||||
export -f gpgVerifyDirectory;
|
||||
|
||||
scanForMalware() {
|
||||
if [ -x /usr/bin/clamscan ] && [ -r /var/lib/clamav/main.cvd ]; then
|
||||
echo -e "\e[0;32mStarting a malware scan...\e[0m";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue