From 5cb6baa439bed9b2ee533b863ca8e8393509d004 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Apr 2024 22:44:33 +0100 Subject: [PATCH] refactor: update truenas-scale to use web_pipe() --- quickget | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index 9aacdb6..faec4b7 100755 --- a/quickget +++ b/quickget @@ -2831,8 +2831,8 @@ function get_truenas-scale() { local ISO="" local URL="" local DLINFO="https://www.truenas.com/download-truenas-scale/" - URL=$(wget -q ${DLINFO} -O- | grep -o "\"https://.*${RELEASE}.*\.iso\""|cut -d\" -f2) - HASH=$(wget -q "${URL}.sha256" -O- | cut_1 ) + URL=$(web_pipe ${DLINFO} | grep -o "\"https://.*${RELEASE}.*\.iso\"" | cut -d'"' -f 2) + HASH=$(web_pipe "${URL}.sha256" | cut_1) echo "${URL} ${HASH}" }