fix: handle inconsistent filenaming
They name releases with a dash for mate and a dot for the others. No bets on when they notice this and make it consistent. In case they somehow get a dashed name first swap the dotty ones too.
This commit is contained in:
parent
fc54dc7334
commit
6893c3230d
11
quickget
11
quickget
|
|
@ -923,7 +923,7 @@ function editions_parrotsec() {
|
|||
}
|
||||
|
||||
function releases_pclinuxos() {
|
||||
# shellcheck disable=SC2005
|
||||
# shellcheck disable=SC2046
|
||||
echo $(web_pipe "https://ftp.fau.de/pclinuxos/pclinuxos/iso" | grep -oP 'pclinuxos64-\K[^\-]+-\K[0-9]+\.[0-9]+' | head -n 1)
|
||||
}
|
||||
|
||||
|
|
@ -2328,7 +2328,14 @@ function get_parrotsec() {
|
|||
}
|
||||
|
||||
function get_pclinuxos() {
|
||||
# shellcheck disable=SC2155
|
||||
case ${EDITION} in
|
||||
mate) RELEASE="${RELEASE//./-}";;
|
||||
# in case an edition is added that uses the mate style and sorts higher
|
||||
kde|kde-darkstar) RELEASE="${RELEASE//-/.}";;
|
||||
xfce) RELEASE="${RELEASE//-/.}";;
|
||||
*) ;;
|
||||
esac
|
||||
# shellcheck disable=SC2155
|
||||
local HASH="$(web_pipe "${URL}/pclinuxos64-${EDITION}-${RELEASE}.md5sum" | head -c 32)"
|
||||
local ISO="pclinuxos64-${EDITION}-${RELEASE}.iso"
|
||||
local URL="https://ftp.fau.de/pclinuxos/pclinuxos/iso"
|
||||
|
|
|
|||
Loading…
Reference in New Issue