diff options
author | Myles Borins <myles.borins@gmail.com> | 2016-01-21 14:31:41 -0800 |
---|---|---|
committer | Myles Borins <mborins@us.ibm.com> | 2016-01-26 09:05:33 -0800 |
commit | 321162df71f02a3e76dfbe87383e867de6fb45ce (patch) | |
tree | 7b9c0c9b6fc02aa85e86b565d88fc1601c041f99 /tools | |
parent | 57003520f83a9431dbef0dfce2edacf430923f20 (diff) | |
download | node-new-321162df71f02a3e76dfbe87383e867de6fb45ce.tar.gz |
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>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/release.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/release.sh b/tools/release.sh index d54252b810..3f6754275a 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -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 |