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
7
quickget
7
quickget
|
@ -24,9 +24,10 @@
|
||||||
# 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}"
|
||||||
|
case ${SIMPLE_NAME} in
|
||||||
elementary) PRETTY_NAME="elementary OS";;
|
elementary) PRETTY_NAME="elementary OS";;
|
||||||
freebsd) PRETTY_NAME="FreeBSD";;
|
freebsd) PRETTY_NAME="FreeBSD";;
|
||||||
linuxmint-cinnamon) PRETTY_NAME="Linux Mint Cinnamon";;
|
linuxmint-cinnamon) PRETTY_NAME="Linux Mint Cinnamon";;
|
||||||
|
@ -39,7 +40,7 @@ function pretty_name() {
|
||||||
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