wip
This commit is contained in:
parent
03ccb7cab6
commit
478354f0c9
1 changed files with 2 additions and 1 deletions
3
dream.sh
3
dream.sh
|
@ -142,12 +142,13 @@ check-and-install() {
|
|||
# ─< else go though the list of items and do the same >───────────────────────────────────
|
||||
pen grey "Packages to install: $(pen green bold $pkgs)"
|
||||
for pkg in "$@"; do
|
||||
upclear
|
||||
if ! command-exists $pkg; then
|
||||
spin bold "$(pen bold yellow Installing) $pkg"
|
||||
if run --err err pkg-install $pkg; then
|
||||
upclear
|
||||
check "$(pen bold green Installed) $pkg"
|
||||
else
|
||||
upclear
|
||||
throw "Something went wrong! Could not install $(pen bold red $pkg)"
|
||||
echo-error "${err:-}"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue