making changes..

This commit is contained in:
pika 2025-05-24 14:48:22 +02:00
parent 76d06eba8d
commit 108932f362

View file

@ -58,11 +58,11 @@ getDependencies() {
declare -A deps=(
[debian]="depsDebian"
[ubuntu]="depsUbuntu"
[fedora]="depsFedora"
[ubuntu]="depsDebian"
# [fedora]="depsFedora"
[arch]="depsArch"
[alpine]="depsAlpine"
[opensuse]="depsOpensuse"
# [alpine]="depsAlpine"
# [opensuse]="depsOpensuse"
)
# INFO:
@ -71,20 +71,25 @@ getDependencies() {
# ╰────────────────────────────────────────────────────────────────╯
declare -n pkgArray="${deps[$distro]}"
local accum=0
for pkg in "${pkgArray[@]}"; do
case "$pkg" in
hyprutils)
if checkComp; then
eval "$(curl -fsSL https://git.k4li.de/scripts/installs/raw/branch/main/hypr/hyprutils.sh)"
((accum++))
fi
;;
*)
if checkComp; then
check-and-install "$pkg"
if pkg-install "$pkg"; then
((accum++))
fi
fi
;;
esac
done
pen bold grey "Installed packages: $(pen bold grey $accum)"
}
build() {