wip
This commit is contained in:
parent
7908539cea
commit
5dca625144
1 changed files with 3 additions and 1 deletions
4
dream.sh
4
dream.sh
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue