Testing new logic..
This commit is contained in:
parent
c14b923019
commit
5e121d4e1c
1 changed files with 11 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue