Update chr.sh

Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
elseif
2025-08-26 00:49:44 +08:00
committed by GitHub
parent 4987501168
commit 6e630b852a

2
chr.sh
View File

@@ -50,7 +50,7 @@ if [[ "$confirm" =~ ^[Nn]$ ]]; then
fi
echo "FILE: $(basename $IMG_URL)"
wget --no-check-certificate -O /tmp/chr.img.zip "$IMG_URL"
wget --no-check-certificate -O /tmp/chr.img.zip "$IMG_URL" || echo "Download failed!"
cd /tmp
unzip -p chr.img.zip > chr.img
if LOOP=$(losetup -Pf --show chr.img 2>/dev/null); then