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
|
||||
line
|
||||
for pkg in "$@"; do
|
||||
# ((accum++))
|
||||
# local count="[${accum}/${pkglength}]"
|
||||
((accum++))
|
||||
local count="[${accum}/${pkglength}]"
|
||||
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
|
||||
upclear
|
||||
check "$(pen bold green Installed) $pkg"
|
||||
check "$(pen bold green Installed) $pkg $(pen bold yellow $count)"
|
||||
else
|
||||
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:-}"
|
||||
fi
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue