From d01b587450f86d04c6e84040fc90672ad47fc8a8 Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 24 May 2025 02:10:58 +0200 Subject: [PATCH] fixing it again.. --- dream.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dream.sh b/dream.sh index 5303ea5..e7f24f9 100644 --- a/dream.sh +++ b/dream.sh @@ -148,16 +148,16 @@ check-and-install() { # done line for pkg in "$@"; do - # ((accum++)) - # local count="[${accum}/${pkglength}]" + ((accum++)) + local count="[${accum}/${pkglength}]" if ! command-exists $pkg; then - spin bold "$(pen bold yellow Installing) $pkg" + spin bold "$(pen bold yellow $count) $(pen bold yellow Installing) $pkg" if run --err err pkg-install $pkg; then upclear - check "$(pen bold green Installed) $pkg" + check "$(pen bold green Installed) $pkg $(pen bold yellow $count)" else upclear - throw "Something went wrong! Could not install $(pen bold red $pkg)" + throw "Something went wrong! Could not install $(pen bold red $pkg) $(pen bold yellow $count)" echo-error "${err:-}" fi else