fix windows line endings in pasted key and rclone remote mount hint

This commit is contained in:
Justin Oros committed 2026-04-16 09:13:17 -07:00
1 parent 2abd6ac6a4
commit c71ad59629
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -88,8 +88,8 @@ case "$KEY_CHOICE" in
chmod 700 "$SSH_DIR"
echo "Paste the private key content below, then press ENTER and CTRL+D:"
KEY_CONTENT=$(cat)
echo "$KEY_CONTENT" > "$KEY_PATH"
KEY_CONTENT=$(cat | tr -d '\r')
printf '%s\n' "$KEY_CONTENT" > "$KEY_PATH"
chown armbian:armbian "$KEY_PATH"
chmod 600 "$KEY_PATH"
info "Key saved to $KEY_PATH"