-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·74 lines (63 loc) · 1.85 KB
/
install.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
## Colours
blue='\e[1;34m';
brown='\e[0;33m';
coloroff='\e[0m'; # Colour off
cyan='\e[1;36m';
gray='\e[1;30m';
green='\e[0;32m';
purple='\e[0;35m';
red='\e[1;31m';
## Download and run script
install_dove() {
wget -nv $1
echo
echo
sudo bash $2
}
## Downloaded files save in /tmp
cd /tmp
## Scripts are here
URL="https://dove.celenity.dev/installer_scripts"
## Scripts file
SCRIPT=("arch_install_paru.sh"
"arch_install_yay.sh"
"debian_install.sh"
"fedora_install.sh"
"macos_install.sh")
echo -e "${purple}Welcome to the Dove installer!${coloroff}";
echo -e "";
echo -e "${brown}To begin, please choose your platform.${coloroff}";
echo -e "${brown}Your options are:${coloroff}";
echo -e "${cyan}arch${coloroff} - ${green}Arch Linux (AUR)${coloroff}";
echo -e "${red}debian${coloroff} - ${green}Debian GNU/Linux (& Derivatives, such as Ubuntu)${coloroff}";
echo -e "${blue}fedora${coloroff} - ${green}Fedora Linux${coloroff}";
echo -e "${gray}macOS${coloroff} - ${green}macOS${coloroff}";
read -p 'Enter your selection: ' DISTRO
case ${DISTRO} in
"arch" | "Arch" | "ARCH")
echo -e ""
echo -e "${brown}Please choose your AUR helper.${coloroff}";
echo -e "${brown}Your options are:${coloroff}";
echo -e "${blue}paru${coloroff} - ${green}Paru${coloroff}";
echo -e "${red}yay${coloroff} - ${green}Yay (Yet Another Yogurt)${coloroff}";
read -p 'Enter your selection: ' HELPER
case ${HELPER} in
"paru" | "Paru" | "PARU")
install_dove ${URL}/${SCRIPT[0]} ${SCRIPT[0]}
;;
"yay" | "Yay" | "YAY")
install_dove ${URL}/${SCRIPT[1]} ${SCRIPT[1]}
;;
esac
;;
"debian" | "Debian" | "DEBIAN")
install_dove ${URL}/${SCRIPT[2]} ${SCRIPT[2]}
;;
"fedora" | "Fedora" | "FEDORA")
install_dove ${URL}/${SCRIPT[3]} ${SCRIPT[3]}
;;
"macOS" | "macos" | "MacOS" | "MACOS")
install_dove ${URL}/${SCRIPT[4]} ${SCRIPT[4]}
;;
esac