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`:
|
||||
|
||||
```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.
|
||||
|
|
|
@ -2,11 +2,10 @@
|
|||
|
||||
# This script installs soyuz-cli
|
||||
|
||||
# Get the latest version number
|
||||
url=$(curl $1 -s -L -I -o /dev/null -w '%{url_effective}' https://github.com/hughrun/soyuz-cli/releases/latest)
|
||||
version=${url##*/} # retain the part after the last slash
|
||||
# Download latest binary and save in /usr/local/bin
|
||||
curl -L https://github.com/hughrun/soyuz-cli/releases/download/$version/MacOS > /usr/local/bin/soyuz
|
||||
# Download latest binary
|
||||
wget -q --show-progress https://github.com/hughrun/soyuz-cli/releases/latest/download/MacOS
|
||||
# mv to /usr/local/bin and rename
|
||||
mv MacOS /usr/local/bin/soyuz
|
||||
# make it executable
|
||||
chmod +x /usr/local/bin/soyuz
|
||||
|
||||
|
|
Loading…
Reference in a new issue