summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/share/m/subkey_to_ssh_agent2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/m/subkey_to_ssh_agent b/src/share/m/subkey_to_ssh_agent
index 79291b1..4bd2234 100644
--- a/src/share/m/subkey_to_ssh_agent
+++ b/src/share/m/subkey_to_ssh_agent
@@ -97,7 +97,7 @@ You might want to run 'monkeysphere gen-subkey'."
primaryuid=$(gpg_user --with-colons --list-key "0x${subkey}!" | grep '^uid:' | head -n1 | cut -f10 -d: | tr -d /)
#kname="[monkeysphere] $primaryuid"
- kname="$primaryuid"
+ kname="${primaryuid:-Monkeysphere Key 0x${subkey}}"
if [ "$1" = '-d' ]; then
# we're removing the subkey: