This commit is contained in:
pika 2025-05-22 15:09:55 +02:00
parent 7a7d701bb4
commit fcd1d0f006

22
test.sh
View file

@ -23,6 +23,8 @@ source-script() {
}
spin-get-dependencies() {
line
spin grey "Getting dependencies.."
# INFO:
@ -66,7 +68,7 @@ spin-get-dependencies() {
pkglist="${deplist[@]}"
echo "${pkglist[*]}"
echo "pkglist: ${pkglist[*]}"
;;
*)
echo_error "There are no dependencies to install for $distro"
@ -80,6 +82,7 @@ spin-get-dependencies() {
main() {
local err
line
if ! spin-get-dependencies; then
throw "Dependencies could not get generated!"
else
@ -88,12 +91,17 @@ main() {
spin bold yellow "Installing packagelist.. ${pkglist[*]}"
sleep 3
if run --err err pkg-install "${pkglist[*]}"; then
check "Installed packages!"
else
throw "$(pen bold blue ${pkglist[*]}) could not get installed!"
echo_error "${err:-}"
fi
for pkg in "${pkglist[@]}"; do
spin bold yellow "Installing $pkg"
if run --err err pkg-install "$pkg"; then
check "Installed $pkg!"
line
else
throw "$(pen bold blue ${pkglist[*]}) could not get installed!"
echo_error "${err:-}"
line
fi
done
fi
# case "$distro" in