Skip to content

Commit

Permalink
tools: add support for subkeys in release tools
Browse files Browse the repository at this point in the history
Replace grep with awk to add support for subkeys

PR-URL: #4807
Reviewed-By: Rod Vagg <rod@vagg.org>
  • Loading branch information
MylesBorins authored and rvagg committed Feb 8, 2016
1 parent 62fb941 commit fd5c566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ signcmd=dist-sign

echo "# Selecting GPG key ..."

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

if [ $keycount -eq 0 ]; then
Expand Down

0 comments on commit fd5c566

Please sign in to comment.