3
3
. ../../common-script.sh
4
4
5
5
installChaoticAUR () {
6
- case " $PACKAGER " in
7
- pacman)
8
- # Check if Chaotic-AUR is already installed
9
- if ! grep -q " \[chaotic-aur\]" /etc/pacman.conf; then
10
- # Print message indicating Chaotic-AUR is being installed
11
- printf " %b\n" " ${YELLOW} Installing Chaotic-AUR repository...${RC} "
12
- # Call Escalation Tool and install and enable Chaotic-AUR
13
- " $ESCALATION_TOOL " pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
14
- " $ESCALATION_TOOL " pacman-key --lsign-key 3056513887B78AEB
15
- " $ESCALATION_TOOL " " $PACKAGER " -U ' https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst'
16
- " $ESCALATION_TOOL " " $PACKAGER " -U ' https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
17
- echo " \n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist" | " $ESCALATION_TOOL " tee -a /etc/pacman.conf
18
- " $ESCALATION_TOOL " " $PACKAGER " -Syu --noconfirm
19
- # Print message indicating Chaotic-AUR has been installed and enabled
20
- printf " %b\n" " ${GREEN} Chaotic-AUR repository installed and enabled${RC} "
21
- else
22
- # Print message indicating Chaotic-AUR is already installed
23
- printf " %b\n" " ${GREEN} Chaotic-AUR repository already installed${RC} "
24
- fi
25
- ;;
26
- * ) # Print error message when linutil detects that user is not on Arch-based system
27
- printf " %b\n" " ${RED} Chaotic-AUR is only supported on Arch-based systems${RC} "
28
- ;;
29
- esac
6
+ case " $PACKAGER " in
7
+ pacman)
8
+ # Check if Chaotic-AUR is already installed
9
+ if ! grep -q " \[chaotic-aur\]" /etc/pacman.conf; then
10
+ # Print message indicating Chaotic-AUR is being installed
11
+ printf " %b\n" " ${YELLOW} Installing Chaotic-AUR repository...${RC} "
12
+ # Call Escalation Tool and install and enable Chaotic-AUR
13
+ " $ESCALATION_TOOL " pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
14
+ " $ESCALATION_TOOL " pacman-key --lsign-key 3056513887B78AEB
15
+ " $ESCALATION_TOOL " " $PACKAGER " -U ' https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst'
16
+ " $ESCALATION_TOOL " " $PACKAGER " -U ' https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
17
+ echo " \n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist" | " $ESCALATION_TOOL " tee -a /etc/pacman.conf
18
+ " $ESCALATION_TOOL " " $PACKAGER " -Syu --noconfirm
19
+ # Print message indicating Chaotic-AUR has been installed and enabled
20
+ printf " %b\n" " ${GREEN} Chaotic-AUR repository installed and enabled${RC} "
21
+ else
22
+ # Print message indicating Chaotic-AUR is already installed
23
+ printf " %b\n" " ${GREEN} Chaotic-AUR repository already installed${RC} "
24
+ fi
25
+ ;;
26
+ * ) # Print error message when linutil detects that user is not on Arch-based system
27
+ printf " %b\n" " ${RED} Chaotic-AUR is only supported on Arch-based systems${RC} "
28
+ ;;
29
+ esac
30
30
}
31
31
32
32
checkEnv
33
33
checkEscalationTool
34
- installChaoticAUR
34
+ installChaoticAUR
0 commit comments