Update chr.sh

Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
elseif 2025-08-26 00:27:00 +08:00 committed by GitHub
parent c5712825ba
commit c2ec6d439c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
chr.sh
View file

@ -64,7 +64,7 @@ EOF
fi
echo "WARNING: All data on /dev/$STORAGE will be lost!"
read -p "Do you want to continue? [Y/n]: " confirm
read -p "Do you want to continue? [Y/n]: " confirm < /dev/tty
confirm=${confirm:-Y}
if [[ "$confirm" =~ ^[Nn]$ ]]; then
echo "Operation aborted."