mirror of
https://github.com/qemus/qemu-docker.git
synced 2025-12-24 13:38:05 +08:00
fix: Correct MX Linux version parsing for ISO download (#990)
This commit is contained in:
@@ -134,7 +134,7 @@ getURL() {
|
||||
"mx" | "mxlinux" | "mx-linux" )
|
||||
name="MX Linux"
|
||||
if [[ "$ret" == "url" ]]; then
|
||||
version=$(curl --disable -Ils "https://sourceforge.net/projects/mx-linux/files/latest/download" | grep -i 'location:' | cut -d? -f1 | cut -d_ -f1 | cut -d- -f3) || exit 65
|
||||
version=$(curl --disable -Ils "https://sourceforge.net/projects/mx-linux/files/latest/download" | grep -i 'location:' | cut -d? -f1 | cut -d_ -f1-2 | cut -d- -f3) || exit 65
|
||||
url="https://mirror.umd.edu/mxlinux-iso/MX/Final/Xfce/MX-${version}_x64.iso"
|
||||
fi ;;
|
||||
"nixos" )
|
||||
|
||||
Reference in New Issue
Block a user