forked from ahoneybun/fresh-install-script
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.sh
executable file
·51 lines (29 loc) · 1.01 KB
/
main.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
# Intro
zenity --info --title="Fresh Install Tool" --text="Let's walk though what software you want on this installation. First we'll make sure your sources are up to date." --width=300 --height=100
## Fedora
if [[ $(grep PRETTY /etc/os-release | cut -c 13-) = *"Fedora"* ]]; then
echo "Fedora detected"
## Run the Fedora bash script
lib/fedora.sh
## Ubuntu
elif [[ $(grep PRETTY /etc/os-release | cut -c 13-) = *"Ubuntu"* ]]; then
echo "Ubuntu detected"
## Run the Ubuntu bash script
lib/ubuntu.sh
## Pop!_OS
elif [[ $(grep PRETTY /etc/os-release | cut -c 13-) = *"Pop"* ]]; then
echo "Pop!_OS detected"
## Run the Pop!_OS bash script
lib/pop.sh
## Arch
elif [[ $(grep PRETTY /etc/os-release | cut -c 13-) = *"Arch Linux"* ]]; then
echo "Arch detected"
## Run the Arch bash script
lib/arch.sh
## Garuda
elif [[ $(grep PRETTY /etc/os-release | cut -c 13-) = *"Garuda Linux"* ]]; then
echo "Garuda detected"
## Run the Garuda bash script
lib/garuda.sh
fi