style(quickget): correctly indent case statements

This commit is contained in:
Martin Wimpress 2024-05-09 01:58:45 +01:00 committed by Martin Wimpress
parent 6f92a52961
commit d7cc6e8115
1 changed files with 503 additions and 515 deletions

View File

@ -1882,14 +1882,10 @@ function get_freedos() {
local ISO="" local ISO=""
local 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) 1.2) ISO="FD12CD.iso"
ISO="FD12CD.iso" HASH=$(web_pipe "${URL}/FD12.sha" | grep "${ISO}" | cut_1);;
HASH=$(web_pipe "${URL}/FD12.sha" | grep "${ISO}" | cut_1) 1.3) ISO="FD13-LiveCD.zip"
;; HASH=$(web_pipe "${URL}/verify.txt" | grep -A 8 "sha256sum" | grep "${ISO}" | cut_1);;
1.3)
ISO="FD13-LiveCD.zip"
HASH=$(web_pipe "${URL}/verify.txt" | grep -A 8 "sha256sum" | grep "${ISO}" | cut_1)
;;
esac esac
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
} }
@ -2320,18 +2316,18 @@ function get_peppermint() {
local ISO="" local ISO=""
local URL="https://sourceforge.net/projects/peppermintos/files/isos" local URL="https://sourceforge.net/projects/peppermintos/files/isos"
case ${EDITION} in case ${EDITION} in
devuan-xfce) ISO="PeppermintOS-devuan_64_xfce.iso" devuan-xfce)
URL="${URL}/XFCE" ISO="PeppermintOS-devuan_64_xfce.iso"
;; URL="${URL}/XFCE";;
debian-xfce) ISO="PeppermintOS-Debian-64.iso" debian-xfce)
URL="${URL}/XFCE" ISO="PeppermintOS-Debian-64.iso"
;; URL="${URL}/XFCE";;
devuan-gnome) ISO="PeppermintOS-devuan_64_gfb.iso" devuan-gnome)
URL="${URL}/Gnome_FlashBack" ISO="PeppermintOS-devuan_64_gfb.iso"
;; URL="${URL}/Gnome_FlashBack";;
debian-gnome) ISO="PeppermintOS-Debian_64_gfb.iso" debian-gnome)
URL="${URL}/Gnome_FlashBack" ISO="PeppermintOS-Debian_64_gfb.iso"
;; URL="${URL}/Gnome_FlashBack";;
esac esac
HASH=$(web_pipe "${URL}/${ISO}-sha512.checksum" | grep "${ISO}" | cut_1) HASH=$(web_pipe "${URL}/${ISO}-sha512.checksum" | grep "${ISO}" | cut_1)
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
@ -2437,12 +2433,10 @@ function get_slax() {
case ${EDITION} in case ${EDITION} in
debian) debian)
URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-12.x" URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-12.x"
ISO=$(web_pipe "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | tail -n1) ISO=$(web_pipe "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | tail -n1);;
;;
slackware) slackware)
URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-15.x" URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-15.x"
ISO=$(web_pipe "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | tail -n1) ISO=$(web_pipe "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | tail -n1);;
;;
esac esac
HASH=$(web_pipe "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f1 | tail -n1) HASH=$(web_pipe "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f1 | tail -n1)
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
@ -3494,12 +3488,10 @@ case "${1}" in
--version|-version) --version|-version)
WHERE=$(dirname "${BASH_SOURCE[0]}") WHERE=$(dirname "${BASH_SOURCE[0]}")
"${WHERE}/quickemu" --version "${WHERE}/quickemu" --version
exit 0 exit 0;;
;;
--help|-help|--h|-h) --help|-help|--h|-h)
help_message help_message
exit 0 exit 0;;
;;
--url|-url) --url|-url)
OPERATION="show" OPERATION="show"
shift shift
@ -3511,8 +3503,7 @@ case "${1}" in
elif [ -z "${2}" ]; then elif [ -z "${2}" ]; then
test_all "${1}" test_all "${1}"
exit 0 exit 0
fi fi;;
;;
--check|-check) --check|-check)
OPERATION="test" OPERATION="test"
shift shift
@ -3524,14 +3515,11 @@ case "${1}" in
elif [ -z "${2}" ]; then elif [ -z "${2}" ]; then
test_all "${1}" test_all "${1}"
exit 0 exit 0
fi fi;;
;;
--list-csv|-list-csv|list|list_csv) list_csv;; --list-csv|-list-csv|list|list_csv) list_csv;;
--list-json|-list-json|list_json) list_json;; --list-json|-list-json|list_json) list_json;;
--list|-list) list_supported;; --list|-list) list_supported;;
-*) -*) error_not_supported_argument;;
error_not_supported_argument
;;
esac esac
if [ -n "${1}" ]; then if [ -n "${1}" ]; then