diff --git a/edit-secrets b/edit-secrets index a82eba5..e10ad3b 100755 --- a/edit-secrets +++ b/edit-secrets @@ -172,7 +172,7 @@ function edit_gpg_file() echo "$0: No changes detected" else # figure out this hosts gpg key id - if lsb_release -r | grep -q 18.04; then + if lsb_release -r | grep -qE '(18|20).04'; then recipient=$($GPG --list-secret-keys | grep -A1 '^sec' | tail -1 | awk '{print $1}') else recipient=$($GPG --list-secret-key | grep ^sec | head -1 | awk '{print $2}' | cut -d / -f 2)