fixing it again..
This commit is contained in:
parent
1caa7f99f1
commit
d01b587450
1 changed files with 5 additions and 5 deletions
10
dream.sh
10
dream.sh
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue