This commit is contained in:
pika 2025-05-19 14:13:34 +02:00
parent 0997cf8a9c
commit 9b42088b1b

View file

@ -86,6 +86,7 @@ getDependencies() {
"tldr" "tldr"
"oh-my-posh" "oh-my-posh"
"eza" "eza"
"ytui-bin"
) )
depsAlpine=() depsAlpine=()
@ -107,7 +108,9 @@ getDependencies() {
case "$distro" in case "$distro" in
debian | ubuntu | arch | fedora | alpine | opensuse) debian | ubuntu | arch | fedora | alpine | opensuse)
echo_info "Installing base packages.." echo_info "Installing base packages.."
checkAndInstall "${generalDeps[@]}" checkAndInstall "${generalDeps[@]}"
checkAndInstall "${pkgArray[@]}" checkAndInstall "${pkgArray[@]}"
;; ;;
*) *)
@ -183,6 +186,28 @@ main() {
esac esac
} }
checkAUR() {
if ! command_exists yay && ! command_exists paru; then
return 69
else
return 0
fi
}
if command_exists pacman; then
if ! checkAUR; then
# if ! command_exists paru; then
echo "${YELLOW}Installing paru as AUR helper...${NC}"
$_sudo pacman -S --needed --noconfirm base-devel git
cd /opt && $_sudo git clone https://aur.archlinux.org/paru-bin.git && $_sudo chown -R "$USER": ./paru-bin
cd paru-bin && makepkg --noconfirm -si
echo "${GREEN}Paru installed${NC}"
# else
# printf "%b\n" "${GREEN}Paru already installed${RC}"
# fi
fi
fi
if getImports; then if getImports; then
# ─< package variable >─────────────────────────────────────────────────────────────────── # ─< package variable >───────────────────────────────────────────────────────────────────
unset PACKAGE unset PACKAGE