a
This commit is contained in:
parent
b8f828f534
commit
281d39a2a0
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user