diff --git a/hypr/hyprgraphics.sh b/hypr/hyprgraphics.sh index eda71b8..ee87ab2 100644 --- a/hypr/hyprgraphics.sh +++ b/hypr/hyprgraphics.sh @@ -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() {