From 478354f0c9634f2855c33ab5ef5f033f6d1fd6d3 Mon Sep 17 00:00:00 2001 From: pika Date: Fri, 23 May 2025 20:34:07 +0200 Subject: [PATCH] wip --- dream.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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