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() {
local err
local err out
if ! spin-get-dependencies; then
throw "Dependencies could not get generated!"
else
check "Dependency list generated!"
pen red bold "There are ${#pkglist[@]} items to install.."
for p in "${pkglist[@]}"; do
echo "Package: $p"
pen red bold "There are ${#deplist[@]} items to install.."
# local pkgs="$@"
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
fi
@ -149,6 +160,7 @@ main() {
# esac
# 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