Skip to content

Commit fd5c566

Browse files
MylesBorinsrvagg
authored andcommitted
tools: add support for subkeys in release tools
Replace grep with awk to add support for subkeys PR-URL: #4807 Reviewed-By: Rod Vagg <[email protected]>
1 parent 62fb941 commit fd5c566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ signcmd=dist-sign
2020

2121
echo "# Selecting GPG key ..."
2222

23-
gpgkey=$(gpg --list-secret-keys | grep '^sec' | awk -F'( +|/)' '{print $3}')
23+
gpgkey=$(gpg --list-secret-keys | awk -F'( +|/)' '/^(sec|ssb)/{print $3}')
2424
keycount=$(echo $gpgkey | wc -w)
2525

2626
if [ $keycount -eq 0 ]; then

0 commit comments

Comments
 (0)