I have a loop that is doing a GPG verification, serially. When it gets to a failure however, it exits the loop. How can I program this loop so that it does not?
Currently I have:
while read -r line;
gpg --verify $line
do
if gpg --verify $line; then
echo "success";
else
echo "failed gpg check";
fi
done < gpg_verify.txt
I want the failure to be acknowledged but I don't want it to stop.