Skip to content

Commit

Permalink
refactor: tidy up get_chimeralinux()
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Apr 21, 2024
1 parent 5925723 commit 41b734e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}

Expand Down

0 comments on commit 41b734e

Please sign in to comment.