break it while wip
This commit is contained in:
parent
772ccf5062
commit
6701c116a4
1 changed files with 4 additions and 3 deletions
7
dream.sh
7
dream.sh
|
@ -134,14 +134,15 @@ check-and-install() {
|
||||||
line
|
line
|
||||||
for pkg in "$@"; do
|
for pkg in "$@"; do
|
||||||
((accum++))
|
((accum++))
|
||||||
|
local count="[${accum}/${pkglength}]"
|
||||||
if ! command-exists $pkg; then
|
if ! command-exists $pkg; then
|
||||||
spin bold "$(pen bold yellow Installing [${accum}/${pkglength}] $pkg)"
|
spin bold "$(pen bold yellow Installing "$count" $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 $count Installed) $pkg"
|
||||||
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 $count $pkg)"
|
||||||
echo-error "${err:-}"
|
echo-error "${err:-}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue