style(quickget): correctly indent case statements
This commit is contained in:
parent
6f92a52961
commit
d7cc6e8115
58
quickget
58
quickget
|
@ -1882,14 +1882,10 @@ function get_freedos() {
|
|||
local ISO=""
|
||||
local URL="http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/${RELEASE}/official"
|
||||
case ${RELEASE} in
|
||||
1.2)
|
||||
ISO="FD12CD.iso"
|
||||
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.2) ISO="FD12CD.iso"
|
||||
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);;
|
||||
esac
|
||||
echo "${URL}/${ISO} ${HASH}"
|
||||
}
|
||||
|
@ -2320,18 +2316,18 @@ function get_peppermint() {
|
|||
local ISO=""
|
||||
local URL="https://sourceforge.net/projects/peppermintos/files/isos"
|
||||
case ${EDITION} in
|
||||
devuan-xfce) ISO="PeppermintOS-devuan_64_xfce.iso"
|
||||
URL="${URL}/XFCE"
|
||||
;;
|
||||
debian-xfce) ISO="PeppermintOS-Debian-64.iso"
|
||||
URL="${URL}/XFCE"
|
||||
;;
|
||||
devuan-gnome) ISO="PeppermintOS-devuan_64_gfb.iso"
|
||||
URL="${URL}/Gnome_FlashBack"
|
||||
;;
|
||||
debian-gnome) ISO="PeppermintOS-Debian_64_gfb.iso"
|
||||
URL="${URL}/Gnome_FlashBack"
|
||||
;;
|
||||
devuan-xfce)
|
||||
ISO="PeppermintOS-devuan_64_xfce.iso"
|
||||
URL="${URL}/XFCE";;
|
||||
debian-xfce)
|
||||
ISO="PeppermintOS-Debian-64.iso"
|
||||
URL="${URL}/XFCE";;
|
||||
devuan-gnome)
|
||||
ISO="PeppermintOS-devuan_64_gfb.iso"
|
||||
URL="${URL}/Gnome_FlashBack";;
|
||||
debian-gnome)
|
||||
ISO="PeppermintOS-Debian_64_gfb.iso"
|
||||
URL="${URL}/Gnome_FlashBack";;
|
||||
esac
|
||||
HASH=$(web_pipe "${URL}/${ISO}-sha512.checksum" | grep "${ISO}" | cut_1)
|
||||
echo "${URL}/${ISO} ${HASH}"
|
||||
|
@ -2437,12 +2433,10 @@ function get_slax() {
|
|||
case ${EDITION} in
|
||||
debian)
|
||||
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)
|
||||
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
|
||||
HASH=$(web_pipe "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f1 | tail -n1)
|
||||
echo "${URL}/${ISO} ${HASH}"
|
||||
|
@ -3494,12 +3488,10 @@ case "${1}" in
|
|||
--version|-version)
|
||||
WHERE=$(dirname "${BASH_SOURCE[0]}")
|
||||
"${WHERE}/quickemu" --version
|
||||
exit 0
|
||||
;;
|
||||
exit 0;;
|
||||
--help|-help|--h|-h)
|
||||
help_message
|
||||
exit 0
|
||||
;;
|
||||
exit 0;;
|
||||
--url|-url)
|
||||
OPERATION="show"
|
||||
shift
|
||||
|
@ -3511,8 +3503,7 @@ case "${1}" in
|
|||
elif [ -z "${2}" ]; then
|
||||
test_all "${1}"
|
||||
exit 0
|
||||
fi
|
||||
;;
|
||||
fi;;
|
||||
--check|-check)
|
||||
OPERATION="test"
|
||||
shift
|
||||
|
@ -3524,14 +3515,11 @@ case "${1}" in
|
|||
elif [ -z "${2}" ]; then
|
||||
test_all "${1}"
|
||||
exit 0
|
||||
fi
|
||||
;;
|
||||
fi;;
|
||||
--list-csv|-list-csv|list|list_csv) list_csv;;
|
||||
--list-json|-list-json|list_json) list_json;;
|
||||
--list|-list) list_supported;;
|
||||
-*)
|
||||
error_not_supported_argument
|
||||
;;
|
||||
-*) error_not_supported_argument;;
|
||||
esac
|
||||
|
||||
if [ -n "${1}" ]; then
|
||||
|
|
Loading…
Reference in New Issue