Add carriage return after a new key
This commit is contained in:
parent
8eaf54cfc3
commit
ce86ce60fc
|
@ -344,7 +344,7 @@ Create authorized_keys file for ${USER_NAME} (${RED}${USER_AUTHORIZED_KEYS_FILE}
|
|||
## If pubkey isn't already in authorized_keys file {{{
|
||||
### Add it with expected options
|
||||
else
|
||||
printf "%s" "${SSH_PUBKEY_OPTION} ${SSH_PUBKEY}" >> "${USER_AUTHORIZED_KEYS_FILE}" \
|
||||
printf "%s\n" "${SSH_PUBKEY_OPTION} ${SSH_PUBKEY}" >> "${USER_AUTHORIZED_KEYS_FILE}" \
|
||||
|| error_message "Error while adding SSH_PUBKEY with expected options in authorized_keys file (${USER_AUTHORIZED_KEYS_FILE})." 32
|
||||
debug_message "The given pubkey is now present in authorized_keys file (${RED}${USER_AUTHORIZED_KEYS_FILE}${COLOR_DEBUG}) with expected permissions."
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue