From 4cd3056f45281970fd6de40f4a671335bf752acc Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 24 May 2025 01:12:42 +0200 Subject: [PATCH] wip --- dream.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"