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 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