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