Testing new logic..

This commit is contained in:
pika 2025-05-24 13:48:40 +02:00
parent c14b923019
commit 5e121d4e1c

View file

@ -124,20 +124,24 @@
if command_exists wget; then if command_exists wget; then
if run --err err --out out wget "$cloneUrl"; then if run --err err --out out wget "$cloneUrl"; then
check upclear
check "Done pulling archive"
else else
# throw-err # throw-err
throw upclear
throw "Error pulling archive"
pen bold yellow "OUT: ${out:-}" pen bold yellow "OUT: ${out:-}"
echo-error "${err:-}" echo-error "${err:-}"
fi fi
elif command_exists curl; then elif command_exists curl; then
if run --err err --out out curl -fsSL "$cloneUrl" -o "zen.linux-${ARCH}.tar.xz"; then if run --err err --out out curl -fsSL "$cloneUrl" -o "zen.linux-${ARCH}.tar.xz"; then
check upclear
check "Done pulling archive"
else else
# throw-err # throw-err
throw upclear
throw "Error pulling archive"
pen bold yellow "OUT: ${out:-}" pen bold yellow "OUT: ${out:-}"
echo-error "${err:-}" echo-error "${err:-}"
fi fi
@ -149,10 +153,12 @@
spin bold blue "Extracting archive.." spin bold blue "Extracting archive.."
if run --err err --out out 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
upclear
check "Extracted archive.." check "Extracted archive.."
else else
# throw-err # throw-err
throw upclear
throw "Error extracting archive"
pen bold yellow "OUT: ${out:-}" pen bold yellow "OUT: ${out:-}"
echo-error "${err:-}" echo-error "${err:-}"
fi fi