Support Ubuntu 20 as well for edit-secrets.
This commit is contained in:
parent
c8451c2122
commit
d12f6297ed
|
@ -172,7 +172,7 @@ function edit_gpg_file()
|
||||||
echo "$0: No changes detected"
|
echo "$0: No changes detected"
|
||||||
else
|
else
|
||||||
# figure out this hosts gpg key id
|
# 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}')
|
recipient=$($GPG --list-secret-keys | grep -A1 '^sec' | tail -1 | awk '{print $1}')
|
||||||
else
|
else
|
||||||
recipient=$($GPG --list-secret-key | grep ^sec | head -1 | awk '{print $2}' | cut -d / -f 2)
|
recipient=$($GPG --list-secret-key | grep ^sec | head -1 | awk '{print $2}' | cut -d / -f 2)
|
||||||
|
|
Loading…
Reference in a new issue