Update chr.sh

Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
elseif 2025-09-25 18:47:24 +08:00 committed by GitHub
parent 3fb99a94ac
commit 3cddd9e6fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
chr.sh
View file

@ -283,7 +283,6 @@ download_image(){
}
create_autorun() {
confirm_storge
if LOOP=$(losetup -Pf --show chr.img 2>/dev/null); then
sleep 1
MNT=/tmp/chr
@ -316,6 +315,7 @@ EOF
write_and_reboot() {
confirm_storge
printf "$MSG_WARNING\n" "$STORAGE"
ask_yesno "$MSG_CONFIRM_CONTINUE"
if [ $? -ne 0 ]; then