Skip to content

Commit 8239d07

Browse files
Apply formatting shfmt
1 parent 6869f82 commit 8239d07

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

core/tabs/system-setup/arch/chaotic-aur-setup.sh

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,32 @@
33
. ../../common-script.sh
44

55
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
3030
}
3131

3232
checkEnv
3333
checkEscalationTool
34-
installChaoticAUR
34+
installChaoticAUR

0 commit comments

Comments
 (0)