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}"