From 2a0e9c791989beadfa0a18cf6b271509e05a5e85 Mon Sep 17 00:00:00 2001 From: pika Date: Thu, 22 May 2025 16:17:51 +0200 Subject: [PATCH] Addet remove question --- test.sh | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/test.sh b/test.sh index b1ea364..7b8a896 100755 --- a/test.sh +++ b/test.sh @@ -116,28 +116,28 @@ main() { check "Dependency list generated!" pen red bold "There are ${#deplist[@]} items to install.." # local pkgs="$@" - for ((i = 0; i < "${#deplist[@]}"; i++)); do - 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 - check "$pkg could not get installed.." - echo_error "${err:-}" - echo_note "${out:-}" - line - continue - fi - done + # for ((i = 0; i < "${#deplist[@]}"; i++)); do + 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 + check "$pkg could not get installed.." + echo_error "${err:-}" + echo_note "${out:-}" + line + continue + fi done + # done check "debug" else throw "Dependencies could not get generated!" exit 69 fi - if confirm "Do you want to remove all installed packages?"; then + if confirm "Do you want to remove all installed packages?"