testing
This commit is contained in:
parent
0997cf8a9c
commit
9b42088b1b
1 changed files with 25 additions and 0 deletions
|
@ -86,6 +86,7 @@ getDependencies() {
|
|||
"tldr"
|
||||
"oh-my-posh"
|
||||
"eza"
|
||||
"ytui-bin"
|
||||
)
|
||||
depsAlpine=()
|
||||
|
||||
|
@ -107,7 +108,9 @@ getDependencies() {
|
|||
case "$distro" in
|
||||
debian | ubuntu | arch | fedora | alpine | opensuse)
|
||||
echo_info "Installing base packages.."
|
||||
|
||||
checkAndInstall "${generalDeps[@]}"
|
||||
|
||||
checkAndInstall "${pkgArray[@]}"
|
||||
;;
|
||||
*)
|
||||
|
@ -183,6 +186,28 @@ main() {
|
|||
esac
|
||||
}
|
||||
|
||||
checkAUR() {
|
||||
if ! command_exists yay && ! command_exists paru; then
|
||||
return 69
|
||||
else
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
if command_exists pacman; then
|
||||
if ! checkAUR; then
|
||||
# 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
|
||||
echo "${GREEN}Paru installed${NC}"
|
||||
# else
|
||||
# printf "%b\n" "${GREEN}Paru already installed${RC}"
|
||||
# fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if getImports; then
|
||||
# ─< package variable >───────────────────────────────────────────────────────────────────
|
||||
unset PACKAGE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue