mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Auto Update Manjaro
This commit is contained in:
parent
82885ef8c4
commit
e33900a81e
1 changed files with 20 additions and 19 deletions
37
quickget
37
quickget
|
@ -877,36 +877,37 @@ function get_linuxmint() {
|
||||||
|
|
||||||
function get_manjaro() {
|
function get_manjaro() {
|
||||||
local FLAVOR=""
|
local FLAVOR=""
|
||||||
|
local MANIFESTURL=""
|
||||||
|
local ISOKEY=""
|
||||||
|
local HASHKEY=""
|
||||||
local HASH=""
|
local HASH=""
|
||||||
local ISO=""
|
local ISO=""
|
||||||
local URL=""
|
local URL=""
|
||||||
local VER=""
|
|
||||||
local DATE=""
|
|
||||||
local KERNEL=""
|
|
||||||
local KERNLTS=""
|
|
||||||
|
|
||||||
validate_release "releases_manjaro"
|
validate_release "releases_manjaro"
|
||||||
FLAVOR=$(echo "${OS}" | cut -d'-' -f2)
|
FLAVOR=$(echo "${OS}" | cut -d'-' -f2)
|
||||||
case ${FLAVOR} in
|
case ${FLAVOR} in
|
||||||
xfce|kde|gnome)
|
xfce|kde|gnome) BRANCH="official";;
|
||||||
VER="21.2.0"
|
budgie|cinnamon|deepin|i3|mate) BRANCH="community";;
|
||||||
DATE="211220"
|
|
||||||
KERNEL="515"
|
|
||||||
KERNLTS="510";;
|
|
||||||
budgie|cinnamon|deepin|i3|mate)
|
|
||||||
VER="21.1.2"
|
|
||||||
DATE="210907"
|
|
||||||
KERNEL="513";;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ ${RELEASE} == "full" ]]; then
|
if [[ ${RELEASE} == "full" ]]; then
|
||||||
ISO="manjaro-${FLAVOR}-${VER}-${DATE}-linux${KERNEL}.iso"
|
KEY="Download_x64 = "
|
||||||
|
HASHKEY="Download_x64_Checksum = "
|
||||||
elif [[ ${RELEASE} == "minimal" ]]; then
|
elif [[ ${RELEASE} == "minimal" ]]; then
|
||||||
ISO="manjaro-${FLAVOR}-${VER}-minimal-${DATE}-linux${KERNEL}.iso"
|
KEY="Download_Minimal_x64 = "
|
||||||
elif [[ ${RELEASE} == "minimal-lts" ]]; then
|
HASHKEY="Download_Minimal_x64_Checksum = "
|
||||||
ISO="manjaro-${FLAVOR}-${VER}-minimal-${DATE}-linux${KERNLTS}.iso"
|
elif [[ ${RELEASE} == "minimal" ]]; then
|
||||||
|
KEY="Download_Minimal_lts = "
|
||||||
|
HASHKEY="Download_Minimal_x64_Checksum_lts = "
|
||||||
fi
|
fi
|
||||||
URL="https://download.manjaro.org/${FLAVOR}/${VER}/${ISO}"
|
|
||||||
|
MANIFESTURL="https://gitlab.manjaro.org/webpage/manjaro-homepage/-/raw/master/site/content/downloads/${BRANCH}/${FLAVOR}.md"
|
||||||
|
URL=$(wget -qO- ${MANIFESTURL} | grep "${KEY}" | awk '{print $3}')
|
||||||
|
ISO="$(echo $URL | awk -F "/" '{print $6}' | tr -d '"')"
|
||||||
|
HASH=$(wget -qO- ${MANIFESTURL} | grep "${HASHKEY}" | awk '{print $3}' | tr -d '"')
|
||||||
web_get "${URL}" "${VM_PATH}"
|
web_get "${URL}" "${VM_PATH}"
|
||||||
|
check_hash "${ISO}" "${HASH}"
|
||||||
make_vm_config "${ISO}"
|
make_vm_config "${ISO}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue