This commit is contained in:
pika 2025-05-24 01:33:11 +02:00
parent 7908539cea
commit 5dca625144

View file

@ -123,6 +123,7 @@ run-silent() {
# if given an array, it checks if the command is available, and if not - installs all packages in that array one by one
check-and-install() {
local pkglength="${#@}"
local accum=0
# if ! pen grey "Packages to install: $(pen green bold $pkglength)"; then
# exit 1
# fi
@ -132,8 +133,9 @@ check-and-install() {
# done
line
for pkg in "$@"; do
((accum++))
if ! command-exists $pkg; then
spin bold "$(pen bold yellow Installing) $pkg"
spin bold "$(pen bold yellow \"Installing [${accum}/${pkglength}]\") $pkg"
if run --err err pkg-install $pkg; then
upclear
check "$(pen bold green Installed) $pkg"