From 9b42088b1bb0a8b39e09aa3ba9d055a211f2aca1 Mon Sep 17 00:00:00 2001 From: pika Date: Mon, 19 May 2025 14:13:34 +0200 Subject: [PATCH] testing --- postinstall.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/postinstall.sh b/postinstall.sh index 64ed26b..048d13b 100644 --- a/postinstall.sh +++ b/postinstall.sh @@ -86,6 +86,7 @@ getDependencies() { "tldr" "oh-my-posh" "eza" + "ytui-bin" ) depsAlpine=() @@ -107,7 +108,9 @@ getDependencies() { case "$distro" in debian | ubuntu | arch | fedora | alpine | opensuse) echo_info "Installing base packages.." + checkAndInstall "${generalDeps[@]}" + checkAndInstall "${pkgArray[@]}" ;; *) @@ -183,6 +186,28 @@ main() { 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 # ─< package variable >─────────────────────────────────────────────────────────────────── unset PACKAGE