From 3796fa7596d22770933c0e524aa175c1b7cd6f9f Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Apr 2024 14:13:17 +0100 Subject: [PATCH] refactor: update vanillaos to use web_pipe() --- quickget | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/quickget b/quickget index 0bcdcfd..97c3c67 100755 --- a/quickget +++ b/quickget @@ -1895,13 +1895,9 @@ function get_blendos() { } function get_vanillaos() { - # maybe use github api and dynamism for R2.0 but for 22.10 just - # hit their CDN - # - # 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" + # TODO: Dynamically get the latest release from GitHub + 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" echo "${URL} ${HASH}" }