Skip to content

Commit

Permalink
refactor: simplify get_tuxedo-os()
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed May 6, 2024
1 parent ec43639 commit 40385db
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -2560,13 +2560,12 @@ function get_truenas-core() {
}

function get_tuxedo-os() {
local HASH=""
local ISO=""
local URL=""
local Current=
Current="$(web_pipe "https://os.tuxedocomputers.com/" | grep -m 1 current.iso | cut -d '=' -f 4 | cut -d '"' -f 2)"
URL="https://os.tuxedocomputers.com/${Current}"
HASH="$(web_pipe "https://os.tuxedocomputers.com/checksums/${Current}.sha256" | cut -d ' ' -f 1)"
echo "${URL} ${HASH}"
local URL="https://os.tuxedocomputers.com"
ISO="$(web_pipe "https://os.tuxedocomputers.com/" | grep -m 1 current.iso | cut -d '=' -f 4 | cut -d '"' -f 2)"
HASH="$(web_pipe "https://os.tuxedocomputers.com/checksums/${ISO}.sha256" | cut -d ' ' -f 1)"
echo "${URL}/${ISO} ${HASH}"
}

function get_ubuntu-server() {
Expand Down

0 comments on commit 40385db

Please sign in to comment.