From 024d3c06ba62199543706e0f44d374bd3b4ffd74 Mon Sep 17 00:00:00 2001 From: pika Date: Mon, 19 May 2025 14:31:26 +0200 Subject: [PATCH] fixing clone bugs.. --- postinstall.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/postinstall.sh b/postinstall.sh index 048d13b..e8ffa50 100644 --- a/postinstall.sh +++ b/postinstall.sh @@ -196,11 +196,12 @@ checkAUR() { 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 && $_sudo chown -R "$USER": ./paru-bin - cd paru-bin && makepkg --noconfirm -si + 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}"