Update zimaos.sh

This commit is contained in:
MacRimi
2025-10-18 16:16:48 +02:00
parent f021afb6a4
commit b7086deeac

View File

@@ -786,12 +786,12 @@ function download_loader() {
| cut -d '"' -f 4) | cut -d '"' -f 4)
if [[ -z "$DOWNLOAD_URL" ]]; then # if [[ -z "$DOWNLOAD_URL" ]]; then
TAG=$(curl -fsSL "$API_URL" | grep -Eo '"tag_name":\s*"[^"]+"' | cut -d '"' -f 4 | head -1) # TAG=$(curl -fsSL "$API_URL" | grep -Eo '"tag_name":\s*"[^"]+"' | cut -d '"' -f 4 | head -1)
if [[ -n "$TAG" ]]; then # if [[ -n "$TAG" ]]; then
DOWNLOAD_URL="https://github.com/IceWhaleTech/ZimaOS/releases/download/${TAG}/zimaos-x86_64-${TAG}_installer.img" # DOWNLOAD_URL="https://github.com/IceWhaleTech/ZimaOS/releases/download/${TAG}/zimaos-x86_64-${TAG}_installer.img"
fi # fi
fi # fi
if [[ -z "$DOWNLOAD_URL" ]]; then if [[ -z "$DOWNLOAD_URL" ]]; then
msg_error "Failed to get latest ZimaOS release URL" msg_error "Failed to get latest ZimaOS release URL"