diff --git a/dream.sh b/dream.sh index 3a08353..d550169 100644 --- a/dream.sh +++ b/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