fix installation
- simplify script - add -L flag to install instructions so they ...actually work.
This commit is contained in:
parent
c2bb66b514
commit
cb932edacf
|
@ -20,7 +20,7 @@ It is mostly a wrapper around `rsync`. Additionally it will maintain an archive
|
||||||
The easiest way to install `soyuz-cli` is using the install script. If you are using MacOS, run this command in `Terminal`:
|
The easiest way to install `soyuz-cli` is using the install script. If you are using MacOS, run this command in `Terminal`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl https://hugh.run/install-soyuz | bash
|
curl -L https://hugh.run/install-soyuz | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, you can build from source if you have rust and cargo installed.
|
Alternatively, you can build from source if you have rust and cargo installed.
|
||||||
|
|
|
@ -2,11 +2,10 @@
|
||||||
|
|
||||||
# This script installs soyuz-cli
|
# This script installs soyuz-cli
|
||||||
|
|
||||||
# Get the latest version number
|
# Download latest binary
|
||||||
url=$(curl $1 -s -L -I -o /dev/null -w '%{url_effective}' https://github.com/hughrun/soyuz-cli/releases/latest)
|
wget -q --show-progress https://github.com/hughrun/soyuz-cli/releases/latest/download/MacOS
|
||||||
version=${url##*/} # retain the part after the last slash
|
# mv to /usr/local/bin and rename
|
||||||
# Download latest binary and save in /usr/local/bin
|
mv MacOS /usr/local/bin/soyuz
|
||||||
curl -L https://github.com/hughrun/soyuz-cli/releases/download/$version/MacOS > /usr/local/bin/soyuz
|
|
||||||
# make it executable
|
# make it executable
|
||||||
chmod +x /usr/local/bin/soyuz
|
chmod +x /usr/local/bin/soyuz
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue