Skip to content

Commit

Permalink
add wget support, cleanup moves
Browse files Browse the repository at this point in the history
  • Loading branch information
QEDK committed Aug 25, 2023
1 parent 65d2fdc commit 1acd44e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
To run an Avail light client, simply run the following command:
```bash
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/availproject/availup/main/availup.sh | sh
```
or, with `wget`:
```bash
wget --https-only --secure-protocol=TLSv1_2 -O - https://raw.githubusercontent.com/availproject/availup/main/availup.sh | sh
```
10 changes: 4 additions & 6 deletions availup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ if [ "$(uname -m)" = "x86_64" ]; then
fi
# use tar to extract the downloaded file and move it to /usr/local/bin
tar -xzf avail-light-linux-amd64.tar.gz
mv avail-light-linux-amd64 avail-light
chmod +x avail-light
sudo mv avail-light /usr/local/bin
chmod +x avail-light-linux-amd64
sudo mv avail-light-linux-amd64 /usr/local/bin/avail-light
rm avail-light-linux-amd64.tar.gz
elif [ "$(uname -m)" = "aarch64" ]; then
# check if curl is available else use wget
Expand All @@ -43,9 +42,8 @@ elif [ "$(uname -m)" = "aarch64" ]; then
fi
# use tar to extract the downloaded file and move it to /usr/local/bin
tar -xzf avail-light-linux-aarch64.tar.gz
mv avail-light-linux-aarch64 avail-light
chmod +x avail-light
sudo mv avail-light /usr/local/bin
chmod +x avail-light-linux-aarch64
sudo mv avail-light-linux-aarch64 /usr/local/bin/avail-light
rm avail-light-linux-aarch64.tar.gz
else
echo "📥 No binary available for this architecture, building from source instead. This can take a while..."
Expand Down

0 comments on commit 1acd44e

Please sign in to comment.