mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Refactor get_alpine()
This commit is contained in:
parent
bbdd66d7d1
commit
41afadd809
1 changed files with 5 additions and 5 deletions
10
quickget
10
quickget
|
@ -778,11 +778,11 @@ function get_alpine() {
|
|||
local BRANCH=""
|
||||
|
||||
validate_release "releases_alpine"
|
||||
if [[ "${RELEASE}" == "latest" ]]; then
|
||||
BRANCH="latest-stable"
|
||||
else
|
||||
BRANCH="v${RELEASE}"
|
||||
fi
|
||||
case ${RELEASE} in
|
||||
latest) BRANCH="latest-stable";;
|
||||
*) BRANCH="v${RELEASE}";;
|
||||
esac
|
||||
|
||||
MANIFESTURL="https://dl-cdn.alpinelinux.org/alpine/${BRANCH}/releases/x86_64/latest-releases.yaml"
|
||||
VERSION=$(wget -qO- "${MANIFESTURL}" | awk '/"Xen"/{found=0} {if(found) print} /"Virtual"/{found=1}' | grep 'version:' | awk '{print $2}')
|
||||
ISO="alpine-virt-${VERSION}-x86_64.iso"
|
||||
|
|
Loading…
Reference in a new issue