fixing it again..

This commit is contained in:
pika 2025-05-24 02:10:58 +02:00
parent 1caa7f99f1
commit d01b587450

View file

@ -148,16 +148,16 @@ check-and-install() {
# done # done
line line
for pkg in "$@"; do for pkg in "$@"; do
# ((accum++)) ((accum++))
# local count="[${accum}/${pkglength}]" local count="[${accum}/${pkglength}]"
if ! command-exists $pkg; then 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 if run --err err pkg-install $pkg; then
upclear upclear
check "$(pen bold green Installed) $pkg" check "$(pen bold green Installed) $pkg $(pen bold yellow $count)"
else else
upclear 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:-}" echo-error "${err:-}"
fi fi
else else