From 2b94962d5940dfeb89a4cde5c85c3c5c2cf664dd Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 6 Aug 2015 13:56:18 +0200 Subject: Use plain sh (not bash), and fail on error. --- localgpgcleankeyring | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/localgpgcleankeyring b/localgpgcleankeyring index 9245f9e..de4e078 100755 --- a/localgpgcleankeyring +++ b/localgpgcleankeyring @@ -1,8 +1,10 @@ -#!/bin/bash +#!/bin/sh # clean_keyring.sh - clean up all the excess keys # origin: https://scruss.com/blog/2013/05/12/clean-up-your-gnupg-keyring/ +set -e + # my keys are those with a corresponding secret key mykeys=$(gpg --list-secret-keys --with-colons | grep '^sec' | cut -d: -f5) if -- cgit v1.2.3