From 729729fd6da582df7181a59a00decfeb5f3e3a3f Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Apr 2024 22:48:38 +0100 Subject: [PATCH] refactor: update void to use web_pipe() --- quickget | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index d3a2c5b..85929d4 100755 --- a/quickget +++ b/quickget @@ -2947,14 +2947,14 @@ function get_void() { local HASH="" local ISO="" local URL="https://repo-default.voidlinux.org/live/current" - DATE=$(wget -q -O- "${URL}/sha256sum.txt" | head -n1 | cut -d'.' -f1 | cut -d'-' -f4) + DATE=$(web_pipe "${URL}/sha256sum.txt" | head -n1 | cut -d'.' -f1 | cut -d'-' -f4) case ${EDITION} in glibc) ISO="void-live-x86_64-${DATE}-base.iso";; musl) ISO="void-live-x86_64-musl-${DATE}-base.iso";; xfce-glibc) ISO="void-live-x86_64-${DATE}-xfce.iso";; xfce-musl) ISO="void-live-x86_64-musl-${DATE}-xfce.iso";; esac - HASH="$(wget -q -O- "${URL}/sha256sum.txt" | grep "${ISO}" | cut -d' ' -f4)" + HASH="$(web_pipe "${URL}/sha256sum.txt" | grep "${ISO}" | cut -d' ' -f4)" echo "${URL}/${ISO} ${HASH}" }