From 5beca16da533eac70f07b4a40c526fc6e8283363 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Sun, 20 Nov 2022 19:47:22 +0530 Subject: [PATCH] follow-up to cd048877b3c2e2c8f32f6661ea7bfff2ed53baa4 --- scripts/pratham-setup.sh | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/scripts/pratham-setup.sh b/scripts/pratham-setup.sh index 5677766..edeb206 100644 --- a/scripts/pratham-setup.sh +++ b/scripts/pratham-setup.sh @@ -149,25 +149,31 @@ rsync \ # AUR-RELATED ################################################################################ -# install necessary packages for installing \`paru\` -doas pacman --sync --refresh --needed base-devel # build paru -mkdir /tmp/parutemp-PARU && pushd /temp/parutemp-PARU -git clone --depth 1 https://aur.archlinux.org/paru.git -pushd paru -makepkg -si -if [[ $? -ne 0 ]]; then - tput -x clear - echo "paru wasn't installed successfully :(" - exit 1 +if command -v paru >/dev/null; then + + # install necessary packages for installing \`paru\` + doas pacman --sync --refresh --needed base-devel + + mkdir /tmp/parutemp-PARU && pushd /temp/parutemp-PARU + git clone --depth 1 https://aur.archlinux.org/paru.git + pushd paru + + makepkg -si + if [[ $? -ne 0 ]]; then + tput -x clear + echo "paru wasn't installed successfully :(" + exit 1 + fi + + popd + popd fi -popd -popd # AUR pkgs paru -S qomui noisetorch ssmtp -paru -S zfs-dkms +#paru -S zfs-dkms # wayland-WM #paru -S hyperland