This commit is contained in:
pika 2025-05-22 15:45:01 +02:00
parent 4cf5726882
commit adca0098ed

20
test.sh
View file

@ -111,15 +111,26 @@ spin-installation() {
} }
main() { main() {
local err local err out
if ! spin-get-dependencies; then if ! spin-get-dependencies; then
throw "Dependencies could not get generated!" throw "Dependencies could not get generated!"
else else
check "Dependency list generated!" check "Dependency list generated!"
pen red bold "There are ${#pkglist[@]} items to install.." pen red bold "There are ${#deplist[@]} items to install.."
for p in "${pkglist[@]}"; do # local pkgs="$@"
echo "Package: $p"
for pkg in "${deplist[@]}"; do
spin bold yellow "Installing $pkg"
if run --err err --out out pkg-install "$pkg"; then
check "Installed $pkg"
line
else
throw "$pkg could not get installed.."
echo_error "${err:-}"
echo_note "${out:-}"
line
fi
done done
fi fi
@ -149,6 +160,7 @@ main() {
# esac # esac
# source_script "https://git.k4li.de/scripts/beddu/raw/branch/main/dist/beddu.sh" # source_script "https://git.k4li.de/scripts/beddu/raw/branch/main/dist/beddu.sh"
check "Complete!"
} }
beddu=https://git.k4li.de/scripts/beddu/raw/branch/main/dist/beddu.sh beddu=https://git.k4li.de/scripts/beddu/raw/branch/main/dist/beddu.sh