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=""
|
local BRANCH=""
|
||||||
|
|
||||||
validate_release "releases_alpine"
|
validate_release "releases_alpine"
|
||||||
if [[ "${RELEASE}" == "latest" ]]; then
|
case ${RELEASE} in
|
||||||
BRANCH="latest-stable"
|
latest) BRANCH="latest-stable";;
|
||||||
else
|
*) BRANCH="v${RELEASE}";;
|
||||||
BRANCH="v${RELEASE}"
|
esac
|
||||||
fi
|
|
||||||
MANIFESTURL="https://dl-cdn.alpinelinux.org/alpine/${BRANCH}/releases/x86_64/latest-releases.yaml"
|
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}')
|
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"
|
ISO="alpine-virt-${VERSION}-x86_64.iso"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue