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=(
|
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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue