From 9f90d46ea195d62a8b84c6dd45ea5b1443bb3e46 Mon Sep 17 00:00:00 2001 From: TheMuso <9444357+TheMuso@users.noreply.github.com> Date: Wed, 18 Jun 2025 11:45:25 +1000 Subject: [PATCH] feat: Add support for FreeDOS 1.4 (#1678) --- quickget | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/quickget b/quickget index 89b4ca6..8f7c2b8 100755 --- a/quickget +++ b/quickget @@ -743,7 +743,7 @@ function editions_freebsd() { } function releases_freedos() { - echo 1.3 1.2 + echo 1.4 1.3 1.2 } function releases_garuda() { @@ -1892,11 +1892,17 @@ function get_freebsd() { function get_freedos() { local HASH="" local ISO="" - local URL="https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/${RELEASE}/official" + local BASE_URL="https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/${RELEASE}" + local URL="" case ${RELEASE} in - 1.2) ISO="FD12CD.iso" + 1.2) URL="${BASE_URL}/official" + ISO="FD12CD.iso" HASH=$(web_pipe "${URL}/FD12.sha" | grep "${ISO}" | cut -d' ' -f1);; - 1.3) ISO="FD13-LiveCD.zip" + 1.3) URL="${BASE_URL}/official" + ISO="FD13-LiveCD.zip" + HASH=$(web_pipe "${URL}/verify.txt" | grep -A 8 "sha256sum" | grep "${ISO}" | cut -d' ' -f1);; + 1.4) URL="${BASE_URL}" + ISO="FD14-LiveCD.zip" HASH=$(web_pipe "${URL}/verify.txt" | grep -A 8 "sha256sum" | grep "${ISO}" | cut -d' ' -f1);; esac echo "${URL}/${ISO} ${HASH}"