Skip to content

Commit

Permalink
Correct wget invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
bahner committed Mar 3, 2024
1 parent e97d07f commit 30bf860
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions termux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
set -eu

BINDIR="${PREFIX}/bin"
WGET_OPTS="-qO"

KUBO_VERSION="${KUBO_VERSION:-v0.26.0}"
KUBO_TARBALL="kubo_${KUBO_VERSION}_linux-arm64.tar.gz"
Expand All @@ -21,7 +22,7 @@ install_wget() {
}

install_ipfs() {
wget -o "${KUBO_TARBALL}" "${KUBO_URL}"
wget "${WGET_OPTS}" "${KUBO_TARBALL}" "${KUBO_URL}"

tar xf "${KUBO_TARBALL}"
mv kubo/ipfs "${BINDIR}"
Expand All @@ -37,7 +38,7 @@ run_ipfs() {
}

install_actor() {
wget -o "${GO_MA_ACTOR}.xz" "${GO_MA_ACTOR_URL}"
wget "${WGET_OPTS}" "${GO_MA_ACTOR}.xz" "${GO_MA_ACTOR_URL}"
xz -d "${GO_MA_ACTOR}.xz"

chmod +x "${GO_MA_ACTOR}"
Expand Down

0 comments on commit 30bf860

Please sign in to comment.