style: correct indentation
This commit is contained in:
parent
fc96b66ada
commit
4eb1b4d09b
58
quickget
58
quickget
|
@ -957,7 +957,7 @@ function releases_endless() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function editions_endless() {
|
function editions_endless() {
|
||||||
echo base en fr pt_BR es
|
echo base en fr pt_BR es
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_fedora() {
|
function releases_fedora() {
|
||||||
|
@ -965,21 +965,21 @@ function releases_fedora() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function editions_fedora() {
|
function editions_fedora() {
|
||||||
echo Workstation \
|
echo Workstation \
|
||||||
Budgie \
|
Budgie \
|
||||||
Cinnamon \
|
Cinnamon \
|
||||||
i3 \
|
i3 \
|
||||||
KDE \
|
KDE \
|
||||||
LXDE \
|
LXDE \
|
||||||
LXQt \
|
LXQt \
|
||||||
Mate \
|
Mate \
|
||||||
Xfce \
|
Xfce \
|
||||||
Silverblue \
|
Silverblue \
|
||||||
Sericea \
|
Sericea \
|
||||||
Kinoite \
|
Kinoite \
|
||||||
Sway \
|
Sway \
|
||||||
Server \
|
Server \
|
||||||
Onyx
|
Onyx
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_freebsd(){
|
function releases_freebsd(){
|
||||||
|
@ -1522,13 +1522,13 @@ function zsync_get() {
|
||||||
local FILE="${1##*/}"
|
local FILE="${1##*/}"
|
||||||
local OUT=""
|
local OUT=""
|
||||||
local URL="${1}"
|
local URL="${1}"
|
||||||
# Test mode for ISO
|
# Test mode for ISO
|
||||||
if [ "${show_iso_url}" == 'on' ]; then
|
if [ "${show_iso_url}" == 'on' ]; then
|
||||||
echo "${URL}"
|
echo "${URL}"
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "${test_iso_url}" == 'on' ]; then
|
elif [ "${test_iso_url}" == 'on' ]; then
|
||||||
wget --spider "${URL}"
|
wget --spider "${URL}"
|
||||||
exit 0
|
exit 0
|
||||||
elif command -v zsync &>/dev/null; then
|
elif command -v zsync &>/dev/null; then
|
||||||
if [ -n "${3}" ]; then
|
if [ -n "${3}" ]; then
|
||||||
OUT="${3}"
|
OUT="${3}"
|
||||||
|
@ -2072,10 +2072,8 @@ function get_easyos() {
|
||||||
local YEAR=""
|
local YEAR=""
|
||||||
ISO="easy-${RELEASE}-amd64.img"
|
ISO="easy-${RELEASE}-amd64.img"
|
||||||
case ${RELEASE} in
|
case ${RELEASE} in
|
||||||
5.6.5|5.6.4|5.6.3|5.6.2|5.6.1|5.5.5|5.5.4)
|
5.6.5|5.6.4|5.6.3|5.6.2|5.6.1) YEAR="2023";;
|
||||||
YEAR="2023";;
|
5.7|5.6.7|5.6.6) YEAR="2024";;
|
||||||
5.7|5.6.7|5.6.6)
|
|
||||||
YEAR="2024";;
|
|
||||||
esac
|
esac
|
||||||
URL="https://distro.ibiblio.org/easyos/amd64/releases/kirkstone/${YEAR}/${RELEASE}"
|
URL="https://distro.ibiblio.org/easyos/amd64/releases/kirkstone/${YEAR}/${RELEASE}"
|
||||||
HASH=$(web_pipe "${URL}/md5.sum.txt" | cut_1)
|
HASH=$(web_pipe "${URL}/md5.sum.txt" | cut_1)
|
||||||
|
@ -2132,8 +2130,8 @@ function get_fedora() {
|
||||||
local URL=""
|
local URL=""
|
||||||
local VARIANT=""
|
local VARIANT=""
|
||||||
case ${EDITION} in
|
case ${EDITION} in
|
||||||
Server|Kinoite|Onyx|Silverblue|Sericea|Workstation) VARIANT="${EDITION}";;
|
Server|Kinoite|Onyx|Silverblue|Sericea|Workstation) VARIANT="${EDITION}";;
|
||||||
*) VARIANT="Spins";;
|
*) VARIANT="Spins";;
|
||||||
esac
|
esac
|
||||||
JSON=$(web_pipe "https://getfedora.org/releases.json" | jq '.[] | select(.variant=="'${VARIANT}'" and .subvariant=="'"${EDITION}"'" and .arch=="x86_64" and .version=="'"${RELEASE}"'")')
|
JSON=$(web_pipe "https://getfedora.org/releases.json" | jq '.[] | select(.variant=="'${VARIANT}'" and .subvariant=="'"${EDITION}"'" and .arch=="x86_64" and .version=="'"${RELEASE}"'")')
|
||||||
URL=$(echo "${JSON}" | jq -r '.link' | head -n1)
|
URL=$(echo "${JSON}" | jq -r '.link' | head -n1)
|
||||||
|
@ -2195,8 +2193,8 @@ function get_ghostbsd() {
|
||||||
local URL="https://download.ghostbsd.org/releases/amd64/${RELEASE}"
|
local URL="https://download.ghostbsd.org/releases/amd64/${RELEASE}"
|
||||||
local HASH=""
|
local HASH=""
|
||||||
case ${EDITION} in
|
case ${EDITION} in
|
||||||
mate) ISO="GhostBSD-${RELEASE}.iso";;
|
mate) ISO="GhostBSD-${RELEASE}.iso";;
|
||||||
xfce) ISO="GhostBSD-${RELEASE}-XFCE.iso";;
|
xfce) ISO="GhostBSD-${RELEASE}-XFCE.iso";;
|
||||||
esac
|
esac
|
||||||
HASH=$(web_pipe "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4)
|
HASH=$(web_pipe "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4)
|
||||||
echo "${URL}/${ISO} ${HASH}"
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
|
|
Loading…
Reference in New Issue