summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@phys.columbia.edu>2008-06-11 17:05:26 -0400
committerJameson Graef Rollins <jrollins@phys.columbia.edu>2008-06-11 17:05:26 -0400
commit8dd86c4d70611a65e8a23ae3f6fa155e8c272be9 (patch)
tree99d9b7fcdd7b892347afc260f27092a0be29f7a8 /src
parent3013b9d9eb534dcc687f5cd426178c369c4dfd4b (diff)
quote some strings to not confuse checkbashisms
Diffstat (limited to 'src')
-rwxr-xr-xsrc/monkeysphere6
-rwxr-xr-xsrc/monkeysphere-server8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/monkeysphere b/src/monkeysphere
index c417625..aaeda11 100755
--- a/src/monkeysphere
+++ b/src/monkeysphere
@@ -54,9 +54,9 @@ gen_ae_subkey(){
keyID="$1"
# set subkey defaults
- SUBKEY_TYPE=${KEY_TYPE:-RSA}
- SUBKEY_LENGTH=${KEY_LENGTH:-1024}
- SUBKEY_USAGE=${KEY_USAGE:-encrypt,auth}
+ SUBKEY_TYPE=${KEY_TYPE:-"RSA"}
+ SUBKEY_LENGTH=${KEY_LENGTH:-"1024"}
+ SUBKEY_USAGE=${KEY_USAGE:-"encrypt,auth"}
gpgOut=$(gpg --fixed-list-mode --list-keys --with-colons \
"$keyID" 2> /dev/null)
diff --git a/src/monkeysphere-server b/src/monkeysphere-server
index 34239b6..a109cf5 100755
--- a/src/monkeysphere-server
+++ b/src/monkeysphere-server
@@ -44,10 +44,10 @@ EOF
# generate server gpg key
gen_key() {
# set key defaults
- KEY_TYPE=${KEY_TYPE:-RSA}
- KEY_LENGTH=${KEY_LENGTH:-2048}
- KEY_USAGE=${KEY_USAGE:-encrypt,auth}
- SERVICE=${SERVICE:-ssh}
+ KEY_TYPE=${KEY_TYPE:-"RSA"}
+ KEY_LENGTH=${KEY_LENGTH:-"2048"}
+ KEY_USAGE=${KEY_USAGE:-"encrypt,auth"}
+ SERVICE=${SERVICE:-"ssh"}
HOSTNAME_FQDN=${HOSTNAME_FQDN:-$(hostname -f)}
USERID=${USERID:-"$SERVICE"://"$HOSTNAME_FQDN"}