refactor: update truenas-core to use web_pipe()
This commit is contained in:
parent
5cb6baa439
commit
c98cd172a5
4
quickget
4
quickget
|
@ -2840,8 +2840,8 @@ function get_truenas-core() {
|
||||||
local ISO=""
|
local ISO=""
|
||||||
local URL=""
|
local URL=""
|
||||||
local DLINFO="https://www.truenas.com/download-truenas-core/"
|
local DLINFO="https://www.truenas.com/download-truenas-core/"
|
||||||
URL=$(wget -q ${DLINFO} -O- | grep -o "\"https://.*${RELEASE}.*\.iso\""|cut -d\" -f2)
|
URL=$(web_pipe ${DLINFO} | grep -o "\"https://.*${RELEASE}.*\.iso\"" | cut -d'"' -f 2)
|
||||||
HASH=$(wget -q "${URL}".sha256 -O- | cut_1)
|
HASH=$(web_pipe "${URL}".sha256 | cut_1)
|
||||||
echo "${URL} ${HASH}"
|
echo "${URL} ${HASH}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue