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 Myles Borins committed Jan 26, 2016
1 parent 5700352 commit 321162d
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 321162d

Please sign in to comment.