This commit is contained in:
pika 2025-05-12 16:49:14 +02:00
parent 0e6eaed68f
commit 16448563c7

View file

@ -106,18 +106,18 @@
fi
cd "$zenDir" || mkdir -p "$zenDir" && cd "$zenDir"
echo_info "Downloading .tar.gz from $cloneUrl"
echo_info "Downloading .tar.xz from $cloneUrl"
if command_exists wget; then
wget "$cloneUrl"
# elif command_exists curl; then
# curl -fsSL "$cloneUrl" -o "zen.linux-${ARCH}.tar.gz"
elif command_exists curl; then
curl -fsSL "$cloneUrl" -o "zen.linux-${ARCH}.tar.xz"
else
exit 69
echo_error "curl/wget is required but missing.."
fi
echo_info "Extracting archive.."
run tar -xvzf "$zenDir/zen.linux-${ARCH}.tar.gz" -C "$zenDir/"
run tar -xvzf "./zen.linux-${ARCH}.tar.xz" .
echo_info "Installing to /bin/zen-browser"
$_sudo ln -fsr ./zen/zen-bin /bin/zen-browser