diff --git a/zen-browser.sh b/zen-browser.sh index bdf7487..8581a2c 100644 --- a/zen-browser.sh +++ b/zen-browser.sh @@ -124,20 +124,24 @@ if command_exists wget; then if run --err err --out out wget "$cloneUrl"; then - check + upclear + check "Done pulling archive" else # throw-err - throw + upclear + throw "Error pulling archive" 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 + upclear + check "Done pulling archive" else # throw-err - throw + upclear + throw "Error pulling archive" pen bold yellow "OUT: ${out:-}" echo-error "${err:-}" fi @@ -149,10 +153,12 @@ spin bold blue "Extracting archive.." if run --err err --out out tar -xf "./zen.linux-${ARCH}.tar.xz" -C "$zenDir"; then + upclear check "Extracted archive.." else # throw-err - throw + upclear + throw "Error extracting archive" pen bold yellow "OUT: ${out:-}" echo-error "${err:-}" fi