Update cachyos-vm.sh
Some checks failed
Update GitHub Versions (New) / update-github-versions (push) Has been cancelled
Update Versions from GitHub / update-versions (push) Has been cancelled

This commit is contained in:
CanbiZ (MickLesk) 2026-02-14 15:22:23 +01:00
parent 1d3f45f792
commit d87c93a364

View File

@ -467,8 +467,11 @@ msg_ok "Virtual Machine ID is ${CL}${BL}$VMID${CL}."
# ==============================================================================
msg_info "Retrieving the URL for the CachyOS Desktop ISO"
# Get latest release version from SourceForge
CACHYOS_VERSION=$(curl -fsSL "https://sourceforge.net/projects/cachyos-arch/files/gui-installer/desktop/" 2>/dev/null | grep -oP '\d{6}' | head -1 || echo "260124")
# Get latest release version from SourceForge (format: YYMMDD in folder links)
CACHYOS_VERSION=$(curl -fsSL "https://sourceforge.net/projects/cachyos-arch/files/gui-installer/desktop/" 2>/dev/null | grep -oP 'desktop/\K[0-9]{6}(?=/)' | sort -rn | head -1)
if [ -z "$CACHYOS_VERSION" ]; then
CACHYOS_VERSION="260124"
fi
# SourceForge download URL with mirror redirect
URL="https://sourceforge.net/projects/cachyos-arch/files/gui-installer/desktop/${CACHYOS_VERSION}/cachyos-desktop-linux-${CACHYOS_VERSION}.iso/download"