1 2 3 4 5
# gpg2 --detach-sign example # if ! gpg2 --verify example.sig example >/dev/null 2>&1; then code=1; fi # gpg2 --clearsign example # if ! gpg2 --verify example.asc >/dev/null 2>&1; then code=1; fi