From fb771265f12da507ab012d09db8e59220ed838bc Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Thu, 24 Feb 2022 23:04:35 +0000 Subject: [PATCH] Minor clean up of FreeDOS support --- quickget | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/quickget b/quickget index ba66956..1c70e90 100755 --- a/quickget +++ b/quickget @@ -286,8 +286,7 @@ function editions_freebsd(){ } function releases_freedos() { - echo 1.2 \ - 1.3 + echo 1.2 1.3 } function releases_garuda() { @@ -893,19 +892,16 @@ function get_freebsd() { function get_freedos() { local HASH="" local ISO="" - local URL="" - - URL="http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/${RELEASE}/official" + local URL="http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/${RELEASE}/official" - case $RELEASE in + case ${RELEASE} in 1.2) ISO="FD12CD.iso" HASH=$(wget -q -O- "${URL}/FD12.sha" | grep "${ISO}" | cut -d' ' -f1) ;; 1.3) ISO="FD13-LiveCD.zip" - HASH=$(wget -q -O- "${URL}/verify.txt" | grep -A 8 "sha256sum" | \ - grep "${ISO}" | cut -d' ' -f1) + HASH=$(wget -q -O- "${URL}/verify.txt" | grep -A 8 "sha256sum" | grep "${ISO}" | cut -d' ' -f1) ;; esac