From fcd1d0f006344339d2d791064dc3007e797ffed9 Mon Sep 17 00:00:00 2001 From: pika Date: Thu, 22 May 2025 15:09:55 +0200 Subject: [PATCH] testing --- test.sh | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/test.sh b/test.sh index c7b7531..324a9b3 100755 --- a/test.sh +++ b/test.sh @@ -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