From 7984fe2e5e03bbbe222cb3fdd8f345e1ad2aa28c Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Apr 2024 22:47:38 +0100 Subject: [PATCH] refactor: update ubuntu-server to use web_pipe() --- quickget | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index de3cee6..a05b6fe 100755 --- a/quickget +++ b/quickget @@ -2866,11 +2866,11 @@ function get_ubuntu-server() { URL="https://releases.ubuntu.com/${RELEASE}" fi if wget -q --spider "${URL}/SHA256SUMS"; then - DATA=$(wget -qO- "${URL}/SHA256SUMS" | grep 'live-server' | grep amd64 | grep iso) + DATA=$(web_pipe "${URL}/SHA256SUMS" | grep 'live-server' | grep amd64 | grep iso) ISO=$(cut -d'*' -f2 <<<${DATA}) HASH=$(cut -d' ' -f1 <<<${DATA}) else - DATA=$(wget -qO- "${URL}/MD5SUMS" | grep 'live-server' | grep amd64 | grep iso) + DATA=$(web_pipe "${URL}/MD5SUMS" | grep 'live-server' | grep amd64 | grep iso) ISO=$(cut -d' ' -f3 <<<${DATA}) HASH=$(cut -d' ' -f1 <<<${DATA}) fi