break it while wip

This commit is contained in:
pika 2025-05-24 01:40:50 +02:00
parent d1e6291a2a
commit d146d8e422

View file

@ -134,12 +134,12 @@ check-and-install() {
line line
for pkg in "$@"; do for pkg in "$@"; do
((accum++)) ((accum++))
local count="$(echo [${accum}/${pkglength}])" # local count="$(echo [${accum}/${pkglength}])"
if ! command-exists $pkg; then if ! command-exists $pkg; then
spin bold "$(pen bold yellow Installing "$count" $pkg)" spin bold "$(pen bold green ${accum}/${pkglenght} Installed)"
if run --err err pkg-install $pkg; then if run --err err pkg-install $pkg; then
upclear upclear
check "$(pen bold green $count Installed) $pkg" check "$(pen bold green ${accum}/${pkglenght} Installed) $pkg"
else else
upclear upclear
throw "Something went wrong! Could not install $(pen bold red $count $pkg)" throw "Something went wrong! Could not install $(pen bold red $count $pkg)"