diff --git a/dream.sh b/dream.sh index 362d364..9217b46 100644 --- a/dream.sh +++ b/dream.sh @@ -145,7 +145,11 @@ check-and-install() { # else local pkglength="${#@}" # ─< else go though the list of items and do the same >─────────────────────────────────── - pen grey "Packages to install: $(pen green bold $pkglength)" + if ! pen grey "Packages to install: $(pen green bold $pkglength)"; then + exit 1 + fi + + line for pkg in "$@"; do if ! command-exists $pkg; then spin bold "$(pen bold yellow Installing) $pkg"