From c14b923019395cec4a8a503aabd30b0f2933d16e Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 24 May 2025 13:46:08 +0200 Subject: [PATCH] Testing new logic.. --- zen-browser.sh | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/zen-browser.sh b/zen-browser.sh index 302c060..bdf7487 100644 --- a/zen-browser.sh +++ b/zen-browser.sh @@ -126,18 +126,20 @@ if run --err err --out out wget "$cloneUrl"; then check else - throw-err - # pen bold yellow "OUT: ${out:-}" - # echo-error "${err:-}" + # throw-err + throw + pen bold yellow "OUT: ${out:-}" + echo-error "${err:-}" fi elif command_exists curl; then if run --err err --out out curl -fsSL "$cloneUrl" -o "zen.linux-${ARCH}.tar.xz"; then check else - throw-err - # pen bold yellow "OUT: ${out:-}" - # echo-error "${err:-}" + # throw-err + throw + pen bold yellow "OUT: ${out:-}" + echo-error "${err:-}" fi # curl -fsSL "$cloneUrl" -o "zen.linux-${ARCH}.tar.xz" else @@ -146,12 +148,13 @@ fi spin bold blue "Extracting archive.." - if run tar -xf "./zen.linux-${ARCH}.tar.xz" -C "$zenDir"; then + if run --err err --out out tar -xf "./zen.linux-${ARCH}.tar.xz" -C "$zenDir"; then check "Extracted archive.." else - throw-err - # pen bold yellow "OUT: ${out:-}" - # echo-error "${err:-}" + # throw-err + throw + pen bold yellow "OUT: ${out:-}" + echo-error "${err:-}" fi pen bold blue "Installing to /bin/zen-browser"