refactor: update ubuntu-server to use web_pipe()
This commit is contained in:
parent
ee3d432736
commit
7984fe2e5e
4
quickget
4
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
|
||||
|
|
Loading…
Reference in New Issue