summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@phys.columbia.edu>2008-06-17 16:07:25 -0400
committerJameson Graef Rollins <jrollins@phys.columbia.edu>2008-06-17 16:07:25 -0400
commit2286a5520d8c5a39370350c2a45f9dd32870c0bc (patch)
tree226342c82d25867f71432474fdba4609114f00e4 /src/common
parent9c94e937fbe8beb56956365cac07d6eff45215cd (diff)
Very small change to comment field for authorized_keys lines.
Diffstat (limited to 'src/common')
-rw-r--r--src/common6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common b/src/common
index 7a90453..ac43f0a 100644
--- a/src/common
+++ b/src/common
@@ -120,7 +120,7 @@ ssh2authorized_keys() {
key="$2"
echo -n "$key" | tr -d '\n'
- echo " MonkeySphere${DATE}: ${userID}"
+ echo " MonkeySphere${DATE} ${userID}"
}
# convert key from gpg to ssh known_hosts format
@@ -153,7 +153,7 @@ gpg2authorized_keys() {
# following regexp:
# '^MonkeySphere[[:digit:]]{4}(-[[:digit:]]{2}){2}T[[:digit:]]{2}(:[[:digit:]]{2}){2}$'
gpg2ssh "$keyID" | tr -d '\n'
- echo " MonkeySphere${DATE}: ${userID}"
+ echo " MonkeySphere${DATE} ${userID}"
}
### GPG UTILITIES
@@ -507,7 +507,7 @@ process_authorized_keys() {
comment="$key"
fi
- if echo "$comment" | egrep -v -q '^MonkeySphere[[:digit:]]{4}(-[[:digit:]]{2}){2}T[[:digit:]]{2}(:[[:digit:]]{2}){2}:' ; then
+ if echo "$comment" | egrep -v -q '^MonkeySphere[[:digit:]]{4}(-[[:digit:]]{2}){2}T[[:digit:]]{2}(:[[:digit:]]{2}){2}' ; then
continue
fi
userID=$(echo "$comment" | awk "{ print $2 }")