Browse Source

tools: add support for subkeys in release tools

Replace grep with awk to add support for subkeys

PR-URL: https://github.com/nodejs/node/pull/4807
Reviewed-By: Rod Vagg <rod@vagg.org>
v4.x
Myles Borins 9 years ago
committed by Myles Borins
parent
commit
b66db49f94
  1. 2
      tools/release.sh

2
tools/release.sh

@ -20,7 +20,7 @@ signcmd=dist-sign
echo "# Selecting GPG key ..." 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) keycount=$(echo $gpgkey | wc -w)
if [ $keycount -eq 0 ]; then if [ $keycount -eq 0 ]; then

Loading…
Cancel
Save