Skip to content

Commit

Permalink
quickget: add function os_homepages
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed Oct 26, 2023
1 parent aaf5da0 commit c956ad9
Showing 1 changed file with 89 additions and 3 deletions.
92 changes: 89 additions & 3 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ function os_support() {
deepin \
devuan \
dragonflybsd \
edubuntu \
elementary \
endeavouros \
endless \
Expand Down Expand Up @@ -281,6 +282,87 @@ function os_support() {
zorin
}

function os_homepages(){
echo alma/https://almalinux.org/ \
alpine/https://alpinelinux.org/ \
android/https://www.android-x86.org/ \
antix/https://antixlinux.com/ \
archlinux/https://archlinux.org/ \
archcraft/https://archcraft.io/ \
arcolinux/https://arcolinux.com/ \
batocera/https://batocera.org/ \
blendos/https://blendos.co/ \
bodhi/https://www.bodhilinux.com/ \
bunsenlabs/https://www.bunsenlabs.org/ \
cachyos/https://cachyos.org/ \
centos-stream/https://www.centos.org/centos-stream/ \
debian/https://www.debian.org/ \
deepin/https://www.deepin.org/ \
devuan/https://www.devuan.org/ \
dragonflybsd/https://www.dragonflybsd.org/ \
edubuntu/https://www.edubuntu.org/ \
elementary/https://elementary.io/ \
endeavouros/https://endeavouros.com/ \
endless/https://www.endlessos.org/os \
fedora/https://www.fedoraproject.org/ \
freebsd/https://www.freebsd.org/ \
freedos/https://freedos.org/ \
garuda/https://garudalinux.org/ \
gentoo/https://www.gentoo.org/ \
ghostbsd/https://www.ghostbsd.org/ \
haiku/https://www.haiku-os.org/ \
holoiso/https://github.com/HoloISO/holoiso \
kali/https://www.kali.org/ \
kdeneon/https://neon.kde.org/ \
kolibrios/http://kolibrios.org/en/ \
kubuntu/https://kubuntu.org/ \
linuxlite/https://www.linuxliteos.com/ \
linuxmint/https://linuxmint.com/ \
lmde/https://www.linuxmint.com/download_lmde.php \
mageia/https://www.mageia.org/ \
manjaro/https://manjaro.org/ \
mxlinux/https://mxlinux.org/ \
netboot/https://netboot.xyz/ \
netbsd/https://www.netbsd.org/ \
nixos/https://nixos.org/ \
lubuntu/https://lubuntu.me/ \
macos/https://www.apple.com/macos/ \
openbsd/https://www.openbsd.org/ \
openindiana/https://www.openindiana.org/ \
opensuse/https://www.opensuse.org/ \
oraclelinux/https://www.oracle.com/linux/ \
peppermint/https://peppermintos.com/ \
popos/https://pop.system76.com/ \
porteus/http://www.porteus.org/ \
reactos/https://reactos.org/ \
rebornos/https://rebornos.org/ \
rockylinux/https://rockylinux.org/ \
siduction/https://siduction.org/ \
slackware/http://www.slackware.com/ \
solus/https://getsol.us/ \
spiral/https://spirallinux.github.io/ \
tails/https://tails.net/ \
tinycore/http://www.tinycorelinux.net/ \
trisquel/https://trisquel.info/ \
truenas-core/https://www.truenas.com/truenas-core/ \
truenas-scale/https://www.truenas.com/truenas-scale/ \
ubuntu/https://ubuntu.com/ \
ubuntu-budgie/https://ubuntubudgie.org/ \
ubuntucinnamon/https://ubuntucinnamon.org/ \
ubuntukylin/https://ubuntukylin.com/ \
ubuntu-mate/https://ubuntu-mate.org/ \
ubuntu-server/https://ubuntu.com/server \
ubuntustudio/https://ubuntustudio.org/ \
ubuntu-unity/https://ubuntuunity.org/ \
vanillaos/https://vanillaos.org/ \
void/https://voidlinux.org/ \
vxlinux/https://vxlinux.org/ \
windows/https://www.microsoft.com/en-us/windows/ \
xerolinux/https://xerolinux.xyz/ \
xubuntu/https://xubuntu.org/ \
zorin/https://zorin.com/os/
}

function releases_alma() {
echo 8 9
}
Expand All @@ -290,6 +372,7 @@ function editions_alma() {
}

function releases_alpine() {
homepage=https://www.alpinelinux.org/
echo 3.12 3.13 3.14 3.15 3.16 3.17 3.18 latest
}

Expand Down Expand Up @@ -871,15 +954,13 @@ function web_get() {
exit 1
fi
echo #Necessary as aria2c in suppressed mode does not have new lines
# Test mode for ISO (yet wget only)
# Test mode for ISO (yet wget only)
elif [ "${show_iso_url}" == 'on' ]; then
echo "${URL}"
exit 0
elif [ "${test_iso_url}" == 'on' ]; then
wget --spider "${URL}"
exit 0
elif [ "${open_distro_homepage}" == 'on' ]; then
xdgopen "${distro_homepage}" && exit 0
else
if ! wget --quiet --continue --show-progress --progress=bar:force:noscroll "${URL}" -O "${DIR}/${FILE}"; then
echo "ERROR! Failed to download ${URL} with wget. Try running 'quickget' again."
Expand Down Expand Up @@ -2596,6 +2677,11 @@ if [ -n "${2}" ]; then
create_vm "$("get_${OS}")"
fi
else
if [ "${open_distro_homepage}" == 'on' ]; then
homepage=$(os_homepages | sed 's/\s\+/\n/g' | grep ${OS} | cut -d'/' -f2-9)
echo "${homepage}"
xdg-open "${homepage}" && exit 0
fi
echo "ERROR! You must specify a release."
case ${OS} in
*ubuntu-server*)
Expand Down

0 comments on commit c956ad9

Please sign in to comment.