Update chr.sh

Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
elseif 2025-08-26 17:19:46 +08:00 committed by GitHub
parent 7a6e538834
commit 2babd89f27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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" || echo "Download failed!"
wget --no-check-certificate -O /tmp/chr.img.zip "$IMG_URL" || { echo "Download failed!"; exit 1; }
cd /tmp
unzip -p chr.img.zip > chr.img
if LOOP=$(losetup -Pf --show chr.img 2>/dev/null); then