mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-06-03 05:25:32 +02:00
refactor: tidy up get_chimeralinux()
This commit is contained in:
parent
592572345c
commit
41b734e23a
9
quickget
9
quickget
|
@ -1922,13 +1922,10 @@ function get_centos-stream() {
|
|||
|
||||
function get_chimeralinux() {
|
||||
local EDITION="${1:-}"
|
||||
local HASH=""
|
||||
local DATE=""
|
||||
local ISO=""
|
||||
local URL="https://repo.chimera-linux.org/live/${RELEASE}"
|
||||
DATE=$(web_pipe "${URL}/sha256sums.txt" | head -n1 | cut -d'-' -f5)
|
||||
ISO="chimera-linux-x86_64-LIVE-${DATE}-${EDITION}.iso"
|
||||
HASH=$(web_pipe "${URL}/sha256sums.txt" | grep 'x86_64-LIVE' | grep "${EDITION}" | cut_1)
|
||||
local DATE=$(web_pipe "${URL}/sha256sums.txt" | head -n1 | cut -d'-' -f5)
|
||||
local ISO="chimera-linux-x86_64-LIVE-${DATE}-${EDITION}.iso"
|
||||
local HASH=$(web_pipe "${URL}/sha256sums.txt" | grep 'x86_64-LIVE' | grep "${EDITION}" | cut_1)
|
||||
echo "${URL}/${ISO} ${HASH}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user