This commit is contained in:
rezzect 2024-05-08 14:39:54 -07:00
parent b8f828f534
commit 281d39a2a0

View File

@ -66,15 +66,7 @@ installDepend() {
## Check for dependencies. ## Check for dependencies.
DEPENDENCIES='zsh zoxide trach-cli' DEPENDENCIES='zsh zoxide trach-cli'
echo -e "${YELLOW}Installing dependencies...${RC}" echo -e "${YELLOW}Installing dependencies...${RC}"
if [[ $PACKAGER == "pacman" ]]; then pacman --noconfirm -S ${DEPENDENCIES}
if ! command_exists yay; then
echo "Installing yay..."
sudo ${PACKAGER} --noconfirm -S base-devel
$(cd /opt && sudo git clone https://aur.archlinux.org/yay-git.git && sudo chown -R ${USER}:${USER} ./yay-git && cd yay-git && makepkg --noconfirm -si)
else
echo "Command yay already installed"
fi
yay --noconfirm -S ${DEPENDENCIES}
else else
sudo ${PACKAGER} install -yq ${DEPENDENCIES} sudo ${PACKAGER} install -yq ${DEPENDENCIES}
fi fi