From: Jameson Graef Rollins Date: Wed, 11 Jun 2008 21:05:26 +0000 (-0400) Subject: quote some strings to not confuse checkbashisms X-Git-Tag: monkeysphere_0.1-1~51^2 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=8dd86c4d70611a65e8a23ae3f6fa155e8c272be9;p=monkeysphere.git quote some strings to not confuse checkbashisms --- 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"}