From 7a138dbfb3687141edf6ddc1db8b876ecaea8826 Mon Sep 17 00:00:00 2001 From: JieXu Date: Sun, 16 Nov 2025 03:51:58 +0800 Subject: [PATCH] Update reinstall-fbl.sh --- reinstall-fbl.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/reinstall-fbl.sh b/reinstall-fbl.sh index adef539..ddf3030 100644 --- a/reinstall-fbl.sh +++ b/reinstall-fbl.sh @@ -727,10 +727,16 @@ qemu-img convert -p -O raw "$IMG_QCOW" "$IMG_RAW" echo echo "WARNING: dd will be run on $DISK. ALL DATA ON THIS DISK WILL BE LOST!" -read -r -p "Type 'yes' to continue: " ans -if [ "$ans" != "yes" ]; then - error "Operation cancelled by user." -fi +read -r -p "Type 'yes' or 'y' to continue: " ans + +case "$ans" in + y|Y|yes|YES|Yes) + # ok + ;; + *) + error "Operation cancelled by user." + ;; +esac # 注意:subscription-manager unregister 已经从这里移除, # 请在 RHEL 阶段的脚本里(还在 RHEL 根系统时)单独调用。