Testing new logic..
This commit is contained in:
parent
0ad00ad5d1
commit
c14b923019
1 changed files with 13 additions and 10 deletions
|
@ -126,18 +126,20 @@
|
||||||
if run --err err --out out wget "$cloneUrl"; then
|
if run --err err --out out wget "$cloneUrl"; then
|
||||||
check
|
check
|
||||||
else
|
else
|
||||||
throw-err
|
# throw-err
|
||||||
# pen bold yellow "OUT: ${out:-}"
|
throw
|
||||||
# echo-error "${err:-}"
|
pen bold yellow "OUT: ${out:-}"
|
||||||
|
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
|
check
|
||||||
else
|
else
|
||||||
throw-err
|
# throw-err
|
||||||
# pen bold yellow "OUT: ${out:-}"
|
throw
|
||||||
# echo-error "${err:-}"
|
pen bold yellow "OUT: ${out:-}"
|
||||||
|
echo-error "${err:-}"
|
||||||
fi
|
fi
|
||||||
# curl -fsSL "$cloneUrl" -o "zen.linux-${ARCH}.tar.xz"
|
# curl -fsSL "$cloneUrl" -o "zen.linux-${ARCH}.tar.xz"
|
||||||
else
|
else
|
||||||
|
@ -146,12 +148,13 @@
|
||||||
fi
|
fi
|
||||||
|
|
||||||
spin bold blue "Extracting archive.."
|
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.."
|
check "Extracted archive.."
|
||||||
else
|
else
|
||||||
throw-err
|
# throw-err
|
||||||
# pen bold yellow "OUT: ${out:-}"
|
throw
|
||||||
# echo-error "${err:-}"
|
pen bold yellow "OUT: ${out:-}"
|
||||||
|
echo-error "${err:-}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pen bold blue "Installing to /bin/zen-browser"
|
pen bold blue "Installing to /bin/zen-browser"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue