making changes..
This commit is contained in:
parent
76d06eba8d
commit
108932f362
1 changed files with 10 additions and 5 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue