From ce86ce60fc245bb16233cc86baccfbb5992162c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Mon, 19 Dec 2022 16:16:27 +0100 Subject: [PATCH] Add carriage return after a new key --- duplicati/add.ssh.pubkey.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/duplicati/add.ssh.pubkey.sh b/duplicati/add.ssh.pubkey.sh index f335b32..19e7c92 100755 --- a/duplicati/add.ssh.pubkey.sh +++ b/duplicati/add.ssh.pubkey.sh @@ -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