From 15024d0f57a2be466f503e753adfd6a43885c85e Mon Sep 17 00:00:00 2001 From: pika Date: Mon, 19 May 2025 14:37:56 +0200 Subject: [PATCH] wip --- postinstall.sh | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/postinstall.sh b/postinstall.sh index e8ffa50..8970528 100644 --- a/postinstall.sh +++ b/postinstall.sh @@ -186,28 +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 - paruTempDir="$(mktemp -d)" - # 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 "$paruTempDir/paru" && $_sudo chown -R "$USER": "$paruTempDir/paru" - cd "$paruTempDir/paru" && makepkg --noconfirm -si - echo "${GREEN}Paru installed${NC}" - # else - # printf "%b\n" "${GREEN}Paru already installed${RC}" - # fi - fi -fi +# checkAUR() { +# if ! command_exists yay && ! command_exists paru; then +# return 69 +# else +# return 0 +# fi +# } +# +# if command_exists pacman; then +# if ! checkAUR; then +# paruTempDir="$(mktemp -d)" +# # 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 "$paruTempDir/paru" && $_sudo chown -R "$USER": "$paruTempDir/paru" +# cd "$paruTempDir/paru" && 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 >───────────────────────────────────────────────────────────────────