style: fix indentation

This commit is contained in:
zen0bit 2024-04-16 17:57:47 +02:00 committed by Martin Wimpress
parent f0fb2c8f6f
commit f40a90772b
1 changed files with 220 additions and 224 deletions

View File

@ -289,6 +289,7 @@ function validate_release() {
local DISPLAY_NAME=""
local RELEASE_GENERATOR=""
local RELEASES=""
DISPLAY_NAME="$(pretty_name "${OS}")"
case ${OS} in
*ubuntu-server*) RELEASE_GENERATOR="releases_ubuntu-server";;
@ -307,7 +308,7 @@ function list_json() {
function list_csv() {
local DISPLAY_NAME
local DL="wget"
local DL=""
local DOWNLOADER
local FUNC
local OPTION
@ -486,7 +487,6 @@ test_isos() {
else
echo "ERROR - ${OS} ${RELEASE} ${OPTION} ${URL}"
fi
done
done
exit 0
@ -1827,13 +1827,10 @@ function get_athenaos() {
rolling)
ISO="athena-rolling-x86_64.iso"
URL="https://sourceforge.net/projects/athena-iso/files/rolling"
HASH=$(wget -q -O- "${URL}/${ISO}.md5" | cut -d' ' -f1)
;;
*)
ISO="athena-20${RELEASE}-x86_64.iso"
URL="https://sourceforge.net/projects/athena-iso/files/v${RELEASE}"
HASH=$(wget -q -O- 'https://sourceforge.net/projects/athena-iso/rss?path=/' | grep '.iso/download"' | grep "${RELEASE}" | cut -d '=' -f7 | cut -d'>' -f2 | cut -d'<' -f1)
;;
esac
echo "${URL}/${ISO} ${HASH}"
}
@ -2753,18 +2750,17 @@ function get_slax() {
local HASH=""
local ISO=""
local URL=""
case ${EDITION} in
debian) URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-12.x"
debian)
URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-12.x"
ISO=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | tail -n1)
HASH=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f1 | tail -n1)
;;
slackware) URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-15.x"
slackware)
URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-15.x"
ISO=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | tail -n1)
HASH=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f1 | tail -n1)
;;
esac
HASH=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f1 | tail -n1)
echo "${URL}/${ISO} ${HASH}"
}