refactor: update vanillaos to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 14:13:17 +01:00 committed by Martin Wimpress
parent f4432af3d9
commit 3796fa7596
1 changed files with 3 additions and 7 deletions

View File

@ -1895,13 +1895,9 @@ function get_blendos() {
} }
function get_vanillaos() { function get_vanillaos() {
# maybe use github api and dynamism for R2.0 but for 22.10 just # TODO: Dynamically get the latest release from GitHub
# hit their CDN local HASH=$(web_pipe "https://cdn.vanillaos.org/assets/ISO/22.10-r9/VanillaOS-22.10-all.20231009.sha256.txt" | cut_1)
# local URL="https://cdn.vanillaos.org/assets/ISO/22.10-r9/VanillaOS-22.10-all.20231009.iso"
# https://cdn.vanillaos.org/assets/ISO/22.10-r8/VanillaOS-22.10-all.20230226.md5.txt
# https://cdn.vanillaos.org/assets/ISO/22.10-r8/VanillaOS-22.10-all.20230226.sha256.txt
local HASH=$(curl -s "https://cdn.vanillaos.org/assets/ISO/22.10-r8/VanillaOS-22.10-all.20230226.sha256.txt" | cut -d' ' -f1)
local URL="https://cdn.vanillaos.org/assets/ISO/22.10-r8/VanillaOS-22.10-all.20230226.iso"
echo "${URL} ${HASH}" echo "${URL} ${HASH}"
} }