mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Make pretty_name() pretty
This commit is contained in:
parent
cf177160c2
commit
62b7713a6d
1 changed files with 15 additions and 14 deletions
29
quickget
29
quickget
|
@ -24,22 +24,23 @@
|
||||||
# 6. Add new OS to the argument parser at the bottom of the script
|
# 6. Add new OS to the argument parser at the bottom of the script
|
||||||
|
|
||||||
function pretty_name() {
|
function pretty_name() {
|
||||||
local OS="${1}"
|
local SIMPLE_NAME=""
|
||||||
local PRETTY_NAME=""
|
local PRETTY_NAME=""
|
||||||
case ${OS} in
|
SIMPLE_NAME="${1}"
|
||||||
elementary) PRETTY_NAME="elementary OS";;
|
case ${SIMPLE_NAME} in
|
||||||
freebsd) PRETTY_NAME="FreeBSD";;
|
elementary) PRETTY_NAME="elementary OS";;
|
||||||
|
freebsd) PRETTY_NAME="FreeBSD";;
|
||||||
linuxmint-cinnamon) PRETTY_NAME="Linux Mint Cinnamon";;
|
linuxmint-cinnamon) PRETTY_NAME="Linux Mint Cinnamon";;
|
||||||
linuxmint-mate) PRETTY_NAME="Linux Mint MATE";;
|
linuxmint-mate) PRETTY_NAME="Linux Mint MATE";;
|
||||||
linuxmint-xfce) PRETTY_NAME="Linux Mint XFCE";;
|
linuxmint-xfce) PRETTY_NAME="Linux Mint XFCE";;
|
||||||
macos) PRETTY_NAME="macOS";;
|
macos) PRETTY_NAME="macOS";;
|
||||||
opensuse) PRETTY_NAME="OpenSUSE";;
|
opensuse) PRETTY_NAME="OpenSUSE";;
|
||||||
popos) PRETTY_NAME="Pop!_OS";;
|
popos) PRETTY_NAME="Pop!_OS";;
|
||||||
ubuntu-budgie) PRETTY_NAME="Ubuntu Budgie";;
|
ubuntu-budgie) PRETTY_NAME="Ubuntu Budgie";;
|
||||||
ubuntu-kylin) PRETTY_NAME="Ubuntu Kylin";;
|
ubuntu-kylin) PRETTY_NAME="Ubuntu Kylin";;
|
||||||
ubuntu-mate) PRETTY_NAME="Ubuntu MATE";;
|
ubuntu-mate) PRETTY_NAME="Ubuntu MATE";;
|
||||||
ubuntu-studio) PRETTY_NAME="Ubuntu Studio";;
|
ubuntu-studio) PRETTY_NAME="Ubuntu Studio";;
|
||||||
*) PRETTY_NAME="${OS^}";;
|
*) PRETTY_NAME="${SIMPLE_NAME^}";;
|
||||||
esac
|
esac
|
||||||
echo "${PRETTY_NAME}"
|
echo "${PRETTY_NAME}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue