Skip to content

Commit 98de3e4

Browse files
authored
Add more flavours to iso.sh
1 parent a66ab9f commit 98de3e4

1 file changed

Lines changed: 23 additions & 9 deletions

File tree

.github/workflows/iso.sh

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ Choose the flavour of Ubuntu you wish to install:
4040
1. Ubuntu
4141
2. Kubuntu
4242
3. Ubuntu Unity
43+
4. Ubuntu Budgie
44+
5. Ubuntu Cinnamon
45+
6. Ubuntu MATE
46+
7. Xubuntu
4347
4448
Type your choice (1, 2 etc.) from the above list and press return.
4549
EOF
@@ -49,12 +53,31 @@ read flavinput
4953
case "$flavinput" in
5054
(1)
5155
flavour=ubuntu
56+
flavourcap=Ubuntu
5257
;;
5358
(2)
5459
flavour=kubuntu
60+
flavourcap=Kubuntu
5561
;;
5662
(3)
5763
flavour=ubuntu-unity
64+
flavourcap="Ubuntu Unity"
65+
;;
66+
(4)
67+
flavour=ubuntu-budgie
68+
flavourcap="Ubuntu Budgie"
69+
;;
70+
(5)
71+
flavour=ubuntucinnamon
72+
flavourcap="Ubuntu Cinnamon"
73+
;;
74+
(6)
75+
flavour=ubuntu-mate
76+
flavourcap="Ubuntu MATE"
77+
;;
78+
(7)
79+
flavour=xubuntu
80+
flavourcap="Xubuntu"
5881
;;
5982
(*)
6083
echo "Invalid input. Aborting!"
@@ -89,15 +112,6 @@ case "$verinput" in
89112
;;
90113
esac
91114

92-
if [[ ${flavour} = ubuntu-unity ]]
93-
then
94-
flavourcap="Ubuntu Unity"
95-
else
96-
firstChar=$(echo "$flavour" | cut -c1 | tr '[a-z]' '[A-Z]')
97-
restOfString=$(echo "$flavour" | cut -c2-)
98-
flavourcap="${firstChar}${restOfString}"
99-
fi
100-
101115
echo -e "\nDownloading Part 1 for ${flavourcap} ${ver}\n"
102116
curl -#L https://github.com/t2linux/T2-Ubuntu/releases/download/${latest}/${iso}.iso.00 > ${iso}.iso
103117

0 commit comments

Comments
 (0)