1
0
forked from finn/tinyboard

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

This commit is contained in:
Justin Oros
2026-04-16 09:13:17 -07:00
parent 2abd6ac6a4
commit c71ad59629
2 changed files with 3 additions and 3 deletions

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"