fixing clone bugs..
This commit is contained in:
parent
9b42088b1b
commit
024d3c06ba
1 changed files with 3 additions and 2 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue