refactor: update opensuse to use web_pipe()
This commit is contained in:
parent
e726789238
commit
5eb4b39c81
2
quickget
2
quickget
|
@ -2573,7 +2573,7 @@ function get_opensuse() {
|
||||||
ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64-Current.iso"
|
ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64-Current.iso"
|
||||||
URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso"
|
URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso"
|
||||||
fi
|
fi
|
||||||
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" |awk '{if(NR==4) print $0}'|cut_1)
|
HASH=$(web_pipe "${URL}/${ISO}.sha256" | awk '{if(NR==4) print $0}' | cut_1)
|
||||||
echo "${URL}/${ISO} ${HASH}"
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue