linutil/core/tabs/system-setup/arch/yay-setup.sh
Nyx cca2660c3b
fix every issue related to printf (#596)
* increase synergy between scripts

* Fix newlines Fix packagers etc

* fix an issue with no new line being created

* fix formatting

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* fix extra comma

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* change to ()

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* change to ()

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* change to ()

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* change to ()

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* remove extra comma

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* remove "please"

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* add support for caps

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* add support for caps

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* add support for caps

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* remove \n and make the default option "N"

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* add an extra quote

Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

* add extra quotes

* fix remaining sn

* fix remaining new lines

---------

Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
2024-09-22 11:01:10 -05:00

27 lines
841 B
Bash
Executable File

#!/bin/sh -e
. ../../common-script.sh
installDepend() {
case "$PACKAGER" in
pacman)
if ! command_exists yay; then
printf "%b\n" "${YELLOW}Installing yay as AUR helper...${RC}"
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm base-devel
cd /opt && "$ESCALATION_TOOL" git clone https://aur.archlinux.org/yay-bin.git && "$ESCALATION_TOOL" chown -R "$USER": ./yay-bin
cd yay-bin && makepkg --noconfirm -si
printf "%b\n" "${GREEN}Yay installed${RC}"
else
printf "%b\n" "${GREEN}Aur helper already installed${RC}"
fi
;;
*)
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
;;
esac
}
checkEnv
checkEscalationTool
installDepend