Unverified Commit abe4e2a4 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: URL formatting for Ubuntu ISO downloads

parent 19fce77d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ getURL() {
      if [[ "$ret" == "url" ]]; then
        body=$(pipe "https://api.launchpad.net/devel/ubuntu/series") || exit 65
        version=$(echo "$body" | jq -r '.entries | .[] | select(.status=="Current Stable Release").version')
        url="https://releases.ubuntu.com/${version}ubuntu-${version}-desktop-amd64.iso"
        url="https://releases.ubuntu.com/${version}/ubuntu-${version}-desktop-amd64.iso"
        arm="https://cdimage.ubuntu.com/releases/${version}/release/ubuntu-${version}desktop-arm64.iso"
      fi ;;
    "ubuntus" | "ubuntu-server")
@@ -184,7 +184,7 @@ getURL() {
      if [[ "$ret" == "url" ]]; then
        body=$(pipe "https://api.launchpad.net/devel/ubuntu/series") || exit 65
        version=$(echo "$body" | jq -r '.entries | .[] | select(.status=="Current Stable Release").version')
        url="https://releases.ubuntu.com/${version}ubuntu-${version}-live-server-amd64.iso"
        url="https://releases.ubuntu.com/${version}/ubuntu-${version}-live-server-amd64.iso"
        arm="https://cdimage.ubuntu.com/releases/${version}/release/ubuntu-${version}-live-server-arm64.iso"
      fi ;;
    "windows" )