From c98cd172a5a4224597b139f88c19a564deb8be2f Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Apr 2024 22:45:02 +0100 Subject: [PATCH] refactor: update truenas-core to use web_pipe() --- quickget | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index faec4b7..321fe8d 100755 --- a/quickget +++ b/quickget @@ -2840,8 +2840,8 @@ function get_truenas-core() { local ISO="" local URL="" local DLINFO="https://www.truenas.com/download-truenas-core/" - 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}" }