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 <[email protected]>
  • Loading branch information
MylesBorins authored and Myles Borins committed Feb 15, 2016
1 parent c3956d0 commit b66db49
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 b66db49

Please sign in to comment.