Update chr.sh

Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
elseif 2025-08-25 22:05:07 +08:00 committed by GitHub
parent d7517cb9f4
commit 18b6449701
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

3
chr.sh
View File

@ -67,7 +67,8 @@ EOF
fi
echo "WARNING: All data on /dev/$STORAGE will be lost!"
read -p "Do you want to continue? [Y/n]: " confirm
echo -n "Do you want to continue? [Y/n]: "
read confirm
[ "$confirm" = "n" ] && echo "Operation aborted." && exit 1
dd if=chr.img of=/dev/$STORAGE bs=4M conv=fsync