Move to using empty string for not using a user-controlled
[monkeysphere.git] / src / monkeysphere-server
index fb710812ade86378798f9d3b137d44157f251404..6ca6a4f7a3b4d6023cc39014a78c65e2c1f13322 100755 (executable)
@@ -220,7 +220,7 @@ update_users() {
        # add user-controlled authorized_keys file if specified
        # translate ssh-style path variables
        rawAuthorizedKeys=$(translate_ssh_variables "$uname" "$RAW_AUTHORIZED_KEYS")
-       if [ "$rawAuthorizedKeys" != '-' -a -s "$rawAuthorizedKeys" ] ; then
+       if [ "$rawAuthorizedKeys" -a -s "$rawAuthorizedKeys" ] ; then
            # check permissions on the authorized_keys file path
            if check_key_file_permissions "$uname" "$rawAuthorizedKeys" ; then
                log verbose "adding raw authorized_keys file... "