projects
/
monkeysphere.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9c94e93
)
Very small change to comment field for authorized_keys lines.
author
Jameson Graef Rollins
<jrollins@phys.columbia.edu>
Tue, 17 Jun 2008 20:07:25 +0000
(16:07 -0400)
committer
Jameson Graef Rollins
<jrollins@phys.columbia.edu>
Tue, 17 Jun 2008 20:07:25 +0000
(16:07 -0400)
src/common
patch
|
blob
|
history
diff --git
a/src/common
b/src/common
index 7a904534d4f9b3fb1302dd7b30b1612923d69916..ac43f0a0f37b7f6a4dcda161041c8771035eba21 100644
(file)
--- a/
src/common
+++ b/
src/common
@@
-120,7
+120,7
@@
ssh2authorized_keys() {
key="$2"
echo -n "$key" | tr -d '\n'
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
}
# 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'
# 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
}
### GPG UTILITIES
@@
-507,7
+507,7
@@
process_authorized_keys() {
comment="$key"
fi
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 }")
continue
fi
userID=$(echo "$comment" | awk "{ print $2 }")