mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-06-10 17:05:22 +02:00
Compare commits
4 Commits
51cbd207fe
...
04b37ccf02
Author | SHA1 | Date | |
---|---|---|---|
|
04b37ccf02 | ||
|
2e1b556b93 | ||
|
c693dc9ba7 | ||
|
50817d2dba |
25
quickget
25
quickget
|
@ -1099,22 +1099,22 @@ function releases_ubuntu() {
|
||||||
local EOL_VERSIONS=($(IFS=$'\n' jq -r 'select(.status=="Obsolete") | .version' <<<${VERSION_DATA} | sort))
|
local EOL_VERSIONS=($(IFS=$'\n' jq -r 'select(.status=="Obsolete") | .version' <<<${VERSION_DATA} | sort))
|
||||||
case "${OS}" in
|
case "${OS}" in
|
||||||
ubuntu)
|
ubuntu)
|
||||||
echo ${SUPPORTED_VERSIONS[@]} daily-live ${EOL_VERSIONS[@]/#/eol-};;
|
echo "${SUPPORTED_VERSIONS[@]}" daily-live "${EOL_VERSIONS[@]/#/eol-}";;
|
||||||
kubuntu|lubuntu|ubuntukylin|ubuntu-mate|ubuntustudio|xubuntu)
|
kubuntu|lubuntu|ubuntukylin|ubuntu-mate|ubuntustudio|xubuntu)
|
||||||
# after 16.04
|
# after 16.04
|
||||||
echo ${SUPPORTED_VERSIONS[@]:1} daily-live ${EOL_VERSIONS[@]/#/eol-};;
|
echo "${SUPPORTED_VERSIONS[@]:1}" daily-live "${EOL_VERSIONS[@]/#/eol-}";;
|
||||||
ubuntu-budgie)
|
ubuntu-budgie)
|
||||||
# after 18.04
|
# after 18.04
|
||||||
echo ${SUPPORTED_VERSIONS[@]:2} daily-live ${EOL_VERSIONS[@]/#/eol-};;
|
echo "${SUPPORTED_VERSIONS[@]:2}" daily-live "${EOL_VERSIONS[@]/#/eol-}";;
|
||||||
edubuntu|ubuntu-unity|ubuntucinnamon)
|
edubuntu|ubuntu-unity|ubuntucinnamon)
|
||||||
# after 23.10
|
# after 23.10
|
||||||
echo ${SUPPORTED_VERSIONS[@]:5} daily-live ${EOL_VERSIONS[@]/#/eol-};;
|
echo "${SUPPORTED_VERSIONS[@]:5}" daily-live "${EOL_VERSIONS[@]/#/eol-}";;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_ubuntu-server() {
|
function releases_ubuntu-server() {
|
||||||
local ALL_VERSIONS=($(IFS=$'\n' web_pipe http://releases.ubuntu.com/streams/v1/com.ubuntu.releases:ubuntu-server.json | jq -r '.products[] | select(.arch=="amd64") | .version' | sort -rV))
|
local ALL_VERSIONS=($(IFS=$'\n' web_pipe http://releases.ubuntu.com/streams/v1/com.ubuntu.releases:ubuntu-server.json | jq -r '.products[] | select(.arch=="amd64") | .version' | sort -rV))
|
||||||
echo ${ALL_VERSIONS[@]}
|
echo "${ALL_VERSIONS[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_vanillaos() {
|
function releases_vanillaos() {
|
||||||
|
@ -1290,22 +1290,19 @@ function web_check() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function zsync_get() {
|
function zsync_get() {
|
||||||
|
local CHECK=""
|
||||||
local DIR="${2}"
|
local DIR="${2}"
|
||||||
local FILE="${1##*/}"
|
local FILE="${1##*/}"
|
||||||
local OUT=""
|
local OUT=""
|
||||||
local URL="${1}"
|
local URL="${1}"
|
||||||
# Test mode for ISO
|
# Test mode for ISO
|
||||||
if [ "${OPERATION}" == "show" ]; then
|
if [ "${OPERATION}" == "show" ]; then
|
||||||
echo "${URL}"
|
test_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}"
|
||||||
|
exit 0
|
||||||
|
elif [ "${OPERATION}" == "test" ]; then
|
||||||
|
CHECK=$(web_check "${URL}" && echo 'PASS' || echo 'FAIL')
|
||||||
|
test_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}" "${CHECK}"
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "${OPERATION}" == "check" ]; then
|
|
||||||
if ! web_check "${URL}"; then
|
|
||||||
check_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}" "FAIL"
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
check_result "${OS}" "${RELEASE}" "${EDITION}" "${URL}" "PASS"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
elif command -v zsync &>/dev/null; then
|
elif command -v zsync &>/dev/null; then
|
||||||
if [ -n "${3}" ]; then
|
if [ -n "${3}" ]; then
|
||||||
OUT="${3}"
|
OUT="${3}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user