Commit Diff


commit - ae641176d52de334d803e64e1699cc975f4c0bd0
commit + 68604afac60240b6dc8ae272b75bdeec5d36057f
blob - 9641a815779ef4bd9cfc16717e0e8c1317193bb1
blob + 1a37ff7a4f227ff6fe2ba2c24f462818e42a4176
--- tpm
+++ tpm
@@ -56,8 +56,8 @@ abort() {
 
 mygpg() {
 
-	if [ -z "$(which gpg)" ]; then
-		if [ -z "$(which gpg2)" ]; then
+	if [ -z "$(which gpg 2> /dev/null)" ]; then
+		if [ -z "$(which gpg2 2> /dev/null)" ]; then
 			abort "gpg or gpg2 not found.  Please install."
 		else
 			GPGB="gpg2"