From 911726aa61b71c7c2f3bc0036b357954bf9c1309 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Apr 2024 14:15:03 +0100 Subject: [PATCH] refactor: update cachyos to use web_pipe() --- quickget | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index eab2da2..923d58d 100755 --- a/quickget +++ b/quickget @@ -1935,10 +1935,10 @@ function get_cachyos() { local ISO="" local URL="" local release="" - release=$(curl "https://mirror.cachyos.org/ISO/${EDITION}/" | grep -Po '(?<=">)[0-9]+(?=/)' | tail -n 1) + release=$(web_pipe "https://mirror.cachyos.org/ISO/${EDITION}/" | grep -Po '(?<=">)[0-9]+(?=/)' | tail -n 1) ISO="cachyos-${EDITION}-linux-${release}.iso" URL="https://mirror.cachyos.org/ISO/${EDITION}/${release}" - HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | cut_1) + HASH=$(web_pipe "${URL}/${ISO}.sha256" | cut_1) echo "${URL}/${ISO} ${HASH}" }