From 0296dddc566da3a4781bf1e9f36374428367a381 Mon Sep 17 00:00:00 2001 From: JieXu Date: Sat, 15 Nov 2025 22:42:19 +0800 Subject: [PATCH] Update reinstall-fbl.sh --- reinstall-fbl.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reinstall-fbl.sh b/reinstall-fbl.sh index 9419833..ffdfc28 100644 --- a/reinstall-fbl.sh +++ b/reinstall-fbl.sh @@ -359,7 +359,7 @@ Available options: fi info "Downloading SSH key from: $key_url" tmpfile=$(mktemp /tmp/reinstall-sshkey.XXXXXX) - if ! http_download("$key_url" "$tmpfile"); then + if ! http_download "$key_url" "$tmpfile"; then rm -f "$tmpfile" ssh_key_error_and_exit "Failed to download SSH key from $key_url" fi @@ -708,7 +708,7 @@ if [ -z "$PASSWORD" ] && [ -z "$SSH_KEYS_ALL" ]; then # Empty: auto-generate random password, no need to confirm if [ -z "$pw1" ]; then if command -v tr >/dev/null 2>&1; then - PASSWORD=$(LC_ALL=C tr -dc 'A-Za-z0-9'