From 6701c116a4dc6fe71106dbff673f6d3ebe075738 Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 24 May 2025 01:38:28 +0200 Subject: [PATCH] break it while wip --- dream.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dream.sh b/dream.sh index 7a1a4a7..8c4247c 100644 --- a/dream.sh +++ b/dream.sh @@ -134,14 +134,15 @@ check-and-install() { line for pkg in "$@"; do ((accum++)) + local count="[${accum}/${pkglength}]" if ! command-exists $pkg; then - spin bold "$(pen bold yellow Installing [${accum}/${pkglength}] $pkg)" + spin bold "$(pen bold yellow Installing "$count" $pkg)" if run --err err pkg-install $pkg; then upclear - check "$(pen bold green Installed) $pkg" + check "$(pen bold green $count Installed) $pkg" else upclear - throw "Something went wrong! Could not install $(pen bold red $pkg)" + throw "Something went wrong! Could not install $(pen bold red $count $pkg)" echo-error "${err:-}" fi else